#1271A9

Closest named color: Ocean Blue (#03719C). oklch(52.6% 0.119 242.2), rgb(18, 113, 169).

Aa

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

About this color

#1271A9 is a medium-dark, moderately saturated blue. In OKLCH its lightness is 53%, its chroma 0.119 and its hue 242°. Its hue sits on the cool side of the wheel. The nearest named color is Ocean Blue (#03719C), ΔE 0.022 away. White text reads best on it, at 5.30:1.

Hue familyBlues
Lightnessmedium-dark (53%)
Chromamoderately saturated (0.119)
Temperaturecool
Nearest nameOcean Blue (#03719C)
Black text3.96:1
White text5.30:1

Values

HEX#1271A9
RGBrgb(18, 113, 169)
HSLhsl(202, 81%, 37%)
OKLCHoklch(52.6% 0.119 242.2)

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 #1271A9 5.30:1 AA Lc -81.2 Fine for body text
Black text on #1271A9 3.96:1 AA large text Lc 28.2 Dividers and decoration only
#1271A9 text on white 5.30:1 AA Lc 75.9 Fine for body text
#1271A9 text on black 3.96:1 AA large text Lc -25.9 Dividers and decoration only

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 600.

  1. Step 50

    50

    #F1F6FA

    oklch(97.1% 0.008 241.7)

  2. Step 100

    100

    #E1EBF4

    oklch(93.5% 0.016 245.1)

  3. Step 200

    200

    #C9DCEC

    oklch(88.5% 0.03 243.4)

  4. Step 300

    300

    #A3C6E1

    oklch(81% 0.054 241.5)

  5. Step 400

    400

    #6FA7D2

    oklch(70.6% 0.086 242.5)

  6. Step 500

    500

    #4691C6

    oklch(63.2% 0.109 242.1)

  7. Step 600

    600 (this color)

    #1271A9

    oklch(52.6% 0.119 242.2)

  8. Step 700

    700

    #10679A

    oklch(49.2% 0.111 241.9)

  9. Step 800

    800

    #13547D

    oklch(42.8% 0.092 242.2)

  10. Step 900

    900

    #194664

    oklch(37.8% 0.071 241.5)

  11. Step 950

    950

    #10293B

    oklch(27.1% 0.046 242.4)

Export this scale for Tailwind in the Tailwind colors tool

#1271A9 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)#5673AB0.055
Deuteranopia (no green cones)#4266A80.041
Tritanopia (no blue cones)#007F850.081
Achromatopsia (no color)#6B6B6B0.119

Harmonies

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

Complementary

The opposite hue (180°).

  • #1271A9

    #1271A9

    oklch(52.6% 0.119 242.2)

  • #9A5805

    #9A5805

    oklch(52.6% 0.119 62.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #1271A9

    #1271A9

    oklch(52.6% 0.119 242.2)

  • #007889

    #007889

    oklch(52.6% 0.092 211.8)

  • #5364AF

    #5364AF

    oklch(52.5% 0.12 272.1)

Open the analogous palette in the generator

Split complementary

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

  • #1271A9

    #1271A9

    oklch(52.6% 0.119 242.2)

  • #A44D3C

    #A44D3C

    oklch(52.6% 0.119 32.6)

  • #816800

    #816800

    oklch(52.7% 0.108 92.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #1271A9

    #1271A9

    oklch(52.6% 0.119 242.2)

  • #A14965

    #A14965

    oklch(52.6% 0.12 2.1)

  • #5F7515

    #5F7515

    oklch(52.6% 0.119 122.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #1271A9

    #1271A9

    oklch(52.6% 0.119 242.2)

  • #924E89

    #924E89

    oklch(52.6% 0.12 332.2)

  • #9A5805

    #9A5805

    oklch(52.6% 0.119 62.1)

  • #257E47

    #257E47

    oklch(52.7% 0.12 152.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #1271A9 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.