#12339C

Closest named color: Sapphire (#2138AB). oklch(37.8% 0.174 265), rgb(18, 51, 156).

Aa

White text reads best on this color (10.60:1).

About this color

#12339C is a dark, vivid blue. In OKLCH its lightness is 38%, its chroma 0.174 and its hue 265°. Its hue sits on the cool side of the wheel. The nearest named color is Sapphire (#2138AB), ΔE 0.032 away. White text reads best on it, at 10.60:1.

Hue familyBlues
Lightnessdark (38%)
Chromavivid (0.174)
Temperaturecool
Nearest nameSapphire (#2138AB)
Black text1.97:1
White text10.60:1

Values

HEX#12339C
RGBrgb(18, 51, 156)
HSLhsl(226, 79%, 34%)
OKLCHoklch(37.8% 0.174 265)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #12339C 10.60:1 AAA Lc -97.8 Preferred for body text
Black text on #12339C 1.97:1 Fails Lc 10.2 Not readable
#12339C text on white 10.60:1 AAA Lc 93.7 Preferred for body text
#12339C text on black 1.97:1 Fails Lc -8.8 Not readable

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 900.

  1. Step 50

    50

    #F1F6FF

    oklch(97.2% 0.013 262.4)

  2. Step 100

    100

    #E0EAFF

    oklch(93.6% 0.03 265.3)

  3. Step 200

    200

    #C7D9FF

    oklch(88.4% 0.056 265.2)

  4. Step 300

    300

    #A3C0FF

    oklch(80.9% 0.095 265.2)

  5. Step 400

    400

    #719CFF

    oklch(70.6% 0.153 265)

  6. Step 500

    500

    #4D80FF

    oklch(63.2% 0.197 264.8)

  7. Step 600

    600

    #2A5EFF

    oklch(55.6% 0.245 265.1)

  8. Step 700

    700

    #133EF6

    oklch(49.1% 0.27 265)

  9. Step 800

    800

    #1036C6

    oklch(42.7% 0.223 265)

  10. Step 900

    900 (this color)

    #12339C

    oklch(37.8% 0.174 265)

  11. Step 950

    950

    #0B1F5B

    oklch(26.9% 0.111 265.2)

Export this scale for Tailwind in the Tailwind colors tool

#12339C with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#00459F0.043
Deuteranopia (no green cones)#00389A0.013
Tritanopia (no blue cones)#0050630.134
Achromatopsia (no color)#3F3F3F0.174

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #12339C

    #12339C

    oklch(37.8% 0.174 265)

  • #553E00

    #553E00

    oklch(37.9% 0.078 84.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #12339C

    #12339C

    oklch(37.8% 0.174 265)

  • #004866

    #004866

    oklch(37.9% 0.08 234.6)

  • #4D1E92

    #4D1E92

    oklch(37.9% 0.174 295)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #12339C

    #12339C

    oklch(37.8% 0.174 265)

  • #663100

    #663100

    oklch(37.7% 0.094 54.7)

  • #414700

    #414700

    oklch(37.9% 0.086 115.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #12339C

    #12339C

    oklch(37.8% 0.174 265)

  • #800010

    #800010

    oklch(37.8% 0.153 25.1)

  • #005110

    #005110

    oklch(37.8% 0.119 144.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #12339C

    #12339C

    oklch(37.8% 0.174 265)

  • #7A0046

    #7A0046

    oklch(37.8% 0.155 355)

  • #553E00

    #553E00

    oklch(37.9% 0.078 84.8)

  • #004E40

    #004E40

    oklch(37.9% 0.071 175.3)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #12339C, closest first.

No curated palette has a color within ΔE 0.04 of #12339C.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #12339C in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.