#1271A8

Closest named color: Ocean Blue (#03719C). oklch(52.5% 0.118 241.7), rgb(18, 113, 168).

Aa

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

About this color

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

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

Values

HEX#1271A8
RGBrgb(18, 113, 168)
HSLhsl(202, 81%, 36%)
OKLCHoklch(52.5% 0.118 241.7)

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 #1271A8 5.31:1 AA Lc -81.3 Fine for body text
Black text on #1271A8 3.95:1 AA large text Lc 28.1 Dividers and decoration only
#1271A8 text on white 5.31:1 AA Lc 75.9 Fine for body text
#1271A8 text on black 3.95:1 AA large text Lc -25.8 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

    #E1EBF3

    oklch(93.5% 0.015 241.8)

  3. Step 200

    200

    #C9DCEB

    oklch(88.5% 0.029 241.6)

  4. Step 300

    300

    #A3C6E0

    oklch(81% 0.053 240.5)

  5. Step 400

    400

    #6FA7D1

    oklch(70.6% 0.085 241.9)

  6. Step 500

    500

    #4691C5

    oklch(63.1% 0.108 241.6)

  7. Step 600

    600 (this color)

    #1271A8

    oklch(52.5% 0.118 241.7)

  8. Step 700

    700

    #116799

    oklch(49.2% 0.109 241.6)

  9. Step 800

    800

    #13547C

    oklch(42.7% 0.091 241.6)

  10. Step 900

    900

    #194664

    oklch(37.8% 0.071 241.5)

  11. Step 950

    950

    #10293A

    oklch(27% 0.044 240.8)

Export this scale for Tailwind in the Tailwind colors tool

#1271A8 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)#5772AA0.056
Deuteranopia (no green cones)#4265A70.043
Tritanopia (no blue cones)#007F850.079
Achromatopsia (no color)#6B6B6B0.118

Harmonies

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

Complementary

The opposite hue (180°).

  • #1271A8

    #1271A8

    oklch(52.5% 0.118 241.7)

  • #9A5809

    #9A5809

    oklch(52.6% 0.118 61.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #1271A8

    #1271A8

    oklch(52.5% 0.118 241.7)

  • #007889

    #007889

    oklch(52.6% 0.092 211.8)

  • #5364AE

    #5364AE

    oklch(52.5% 0.118 272)

Open the analogous palette in the generator

Split complementary

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

  • #1271A8

    #1271A8

    oklch(52.5% 0.118 241.7)

  • #A34D3D

    #A34D3D

    oklch(52.5% 0.118 32.1)

  • #816700

    #816700

    oklch(52.4% 0.107 91.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #1271A8

    #1271A8

    oklch(52.5% 0.118 241.7)

  • #A04A65

    #A04A65

    oklch(52.6% 0.117 2.2)

  • #607415

    #607415

    oklch(52.5% 0.118 121.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #1271A8

    #1271A8

    oklch(52.5% 0.118 241.7)

  • #914E89

    #914E89

    oklch(52.5% 0.119 331.7)

  • #9A5809

    #9A5809

    oklch(52.6% 0.118 61.6)

  • #287D46

    #287D46

    oklch(52.5% 0.118 151.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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