Skip to content
#8E8E9E
#C8C8D0
#5C8EA8
#2E2A1E
Background
Decorative / accent
Decorative / accent
Large text / UI

San Juan Castle Color Palette

#8E8E9E · #C8C8D0 · #5C8EA8 · #2E2A1E

Fail
WCAG Grade
4.44:1
Contrast Ratio
AI Prompt

Use #8E8E9E as the background. Use #C8C8D0 as the primary accent. Use #5C8EA8 as secondary. Use #2E2A1E as body text/supporting color. Palette mood: San Juan Castle — castle, fort, cobble.

Hex Codes, RGB & CMYK Color Values

Technical breakdown for the San Juan Castle color scheme. Use these values for web design (HEX/RGB), print projects (CMYK), or specialized design software (HSL).

Swatch Design Role HEX RGB CMYK HSL
Background
Luminance: 27.6%
142, 142, 158 10%, 10%, 0%, 38% 240°, 8%, 59%
Decorative / accent
Luminance: 58.1%
200, 200, 208 4%, 4%, 0%, 18% 240°, 8%, 80%
Decorative / accent
Luminance: 24.4%
92, 142, 168 45%, 15%, 0%, 34% 201°, 30%, 51%
Large text / UI
Luminance: 2.3%
46, 42, 30 0%, 9%, 35%, 82% 45°, 21%, 15%

San Juan Castle Tints & Shades

Hover states, borders and elevation need lighter and darker steps of your base colors. Here are computed tints and shades for every color in the San Juan Castle palette — click any swatch to copy its hex.

#8E8E9E muted blue
#C8C8D0 muted blue
#5C8EA8 gently saturated cyan-blue
#2E2A1E muted orange

San Juan Castle Palette Contrast Matrix (WCAG 2.1)

Every color tested as text on every other color as background. Body copy needs 4.5:1 (AA), large text and UI components 3:1. AAA requires 7:1.

Text on Background Preview Ratio Grade Safe For
#2E2A1E on #C8C8D0
Aa Sample Text
8.61:1 AAA Body text, headings, UI
#C8C8D0 on #2E2A1E
Aa Sample Text
8.61:1 AAA Body text, headings, UI
#2E2A1E on #8E8E9E
Aa Sample Text
4.44:1 Fail Large headings, UI components
#8E8E9E on #2E2A1E
Aa Sample Text
4.44:1 Fail Large headings, UI components
#2E2A1E on #5C8EA8
Aa Sample Text
4.01:1 Fail Large headings, UI components
#5C8EA8 on #2E2A1E
Aa Sample Text
4.01:1 Fail Large headings, UI components
#5C8EA8 on #C8C8D0
Aa Sample Text
2.14:1 Fail Decorative use only
#C8C8D0 on #5C8EA8
Aa Sample Text
2.14:1 Fail Decorative use only
#C8C8D0 on #8E8E9E
Aa Sample Text
1.93:1 Fail Decorative use only
#8E8E9E on #C8C8D0
Aa Sample Text
1.93:1 Fail Decorative use only
#5C8EA8 on #8E8E9E
Aa Sample Text
1.10:1 Fail Decorative use only
#8E8E9E on #5C8EA8
Aa Sample Text
1.10:1 Fail Decorative use only

Palette Details

San Juan is the walled city of Puerto Rico, its El Morro castle and cobbled streets facing the Atlantic. Three of the four colors are muted (8–21%) and the other is balanced (30%), with lightness running 15–80%. Body text #2E2A1E on #8E8E9E measures 4.44:1 (the 3:1 large-text threshold only); the accent #C8C8D0 measures 1.93:1 against the same background.

Color Harmony: No Single Classic Rule

Two hue groups sit 156° apart — 1 color around 45° and 1 color around 201°. That is neither complementary (180°) nor analogous (within about 60°).

Hue Wheel

Because the hue spacing is irregular, choose roles by measured contrast rather than by hue relationship.

History & Design Context

El Morro, begun in 1539, guarded San Juan for 400 years under the Spanish, and the old citys blue-cobbled streets and pastel houses are a UNESCO site; Puerto Rico remains a U.S. territory, and San Juan is its cultural capital.

Best Design Use Cases

Use the fort stone for the walls, sea blue for the harbour, and pale grey for highlights. Set dark slate text on the pale grey; on the fort stone it is large-text only.

Measured best pair: #2E2A1E on #C8C8D0 at 8.61:1 (AAA). Use this pair for paragraph copy; the surface roles above are not body-text prescriptions.

Colors That Pair Well With San Juan Castle

Need a fifth color? These three companions are computed from the palette's own hue positions on the color wheel, so they extend the scheme without breaking its harmony.

yellow

directly opposite #C8C8D0 on the wheel — the strongest accent for CTAs and highlights when you need maximum energy

violet

30° beside #C8C8D0 — a calm secondary that extends the palette without adding tension

tinted neutral

an ink-black carrying the palette's own hue — perfect for surfaces and dividers

Using San Juan Castle Without Breaking Accessibility

  • Avoid #C8C8D0 for small UI elements on #8E8E9E — at 1.93:1 it misses the 3:1 WCAG threshold; darken it with a shade from the ramp below.
  • Don't set body copy in #2E2A1E on #8E8E9E — 4.44:1 fails WCAG AA; keep it for large decorative headings only.
  • Let #5C8EA8 carry sidebars, cards and footers — at a mid lightness it separates zones without stealing focus from #C8C8D0.

How to Implement the San Juan Castle Color Scheme

To use this San Juan Castle color palette in your web project, copy the CSS variables below or open the export panel for Tailwind, SCSS and Figma formats.

Option 1: CSS Variables

:root {
  /* San Juan Castle — ihatecolors */
  --color-bg: #8E8E9E;
  --color-accent: #C8C8D0;
  --color-secondary: #5C8EA8;
  --color-text: #2E2A1E;
}

Web Design Tip

#C8C8D0 on #8E8E9E measures 1.93:1 — below the 3:1 WCAG threshold for UI components. Use it for decoration only, or darken it with a shade from the ramp before using it for buttons, icons or borders.

Accessibility Note

#2E2A1E on #8E8E9E measures 4.44:1 — enough for large text and UI components (3:1) but below the 4.5:1 needed for body copy.

San Juan Castle Palette — Frequently Asked Questions

What are the hex codes in the San Juan Castle color palette?

The San Juan Castle palette contains #8E8E9E, #C8C8D0, #5C8EA8, #2E2A1E. Click any swatch on this page to copy its value, or export all four at once as CSS variables, Tailwind config, SCSS or a Figma-ready list.

Is the San Juan Castle color palette accessible (WCAG)?

Yes. #2E2A1E on #C8C8D0 reaches 8.61:1, which passes WCAG AAA for normal text (7:1) as well as AA and the 3:1 UI threshold — use it for body copy and controls. The full contrast matrix above shows the exact score for every color-on-color pair in this palette.

What colors go well with the San Juan Castle palette?

Beyond its own four colors, #B9B9AC, #CCC7D1, #141415 extend it naturally: the complementary hue for high-energy accents, an analogous neighbor for calm transitions, and a tinted neutral for surfaces. All three are computed from this palette's hues on the color wheel.

What mood does the San Juan Castle palette create?

San Juan Castle reads as castle, fort, cobble. Muted blue drives the personality, grounded by muted blue — a combination that works best when the light base gets most of the canvas.

Can I use the San Juan Castle color palette commercially?

Yes. Individual color values can't be copyrighted, so the San Juan Castle palette is free for personal, client and commercial work — websites, branding, apps, print and social content, with no attribution required.

How do I add the San Juan Castle palette to Tailwind or CSS?

Use the export panel on this page: CSS variables, a Tailwind config block, SCSS variables, or a Figma copy list are generated from San Juan Castle's exact values, including the tint and shade ramps shown above.

Similar Palettes

Live Preview
Generate Similar ✦