#31479B

Closest named color: Cobalt (#1E488F). oklch(43% 0.139 268.8), rgb(49, 71, 155).

Aa

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

About this color

#31479B is a dark, moderately saturated blue. In OKLCH its lightness is 43%, its chroma 0.139 and its hue 269°. Its hue sits on the cool side of the wheel. The nearest named color is Cobalt (#1E488F), ΔE 0.028 away. White text reads best on it, at 8.38:1.

Hue familyBlues
Lightnessdark (43%)
Chromamoderately saturated (0.139)
Temperaturecool
Nearest nameCobalt (#1E488F)
Black text2.50:1
White text8.38:1

Values

HEX#31479B
RGBrgb(49, 71, 155)
HSLhsl(228, 52%, 40%)
OKLCHoklch(43% 0.139 268.8)

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 #31479B 8.38:1 AAA Lc -93.2 Preferred for body text
Black text on #31479B 2.50:1 Fails Lc 15.4 Dividers and decoration only
#31479B text on white 8.38:1 AAA Lc 88.6 Fine for body text
#31479B text on black 2.50:1 Fails Lc -13.6 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 800.

  1. Step 50

    50

    #F2F5FD

    oklch(97% 0.011 269.6)

  2. Step 100

    100

    #E3EAFA

    oklch(93.6% 0.023 266.9)

  3. Step 200

    200

    #CDD9F8

    oklch(88.6% 0.045 268.7)

  4. Step 300

    300

    #ABBFF6

    oklch(80.9% 0.081 269)

  5. Step 400

    400

    #7F9CF2

    oklch(70.7% 0.13 268.8)

  6. Step 500

    500

    #6081ED

    oklch(63.1% 0.166 268.6)

  7. Step 600

    600

    #4967DC

    oklch(55.6% 0.182 268.9)

  8. Step 700

    700

    #3B55BF

    oklch(49.2% 0.169 268.9)

  9. Step 800

    800 (this color)

    #31479B

    oklch(43% 0.139 268.8)

  10. Step 900

    900

    #2A3C7B

    oklch(37.7% 0.109 268.7)

  11. Step 950

    950

    #192448

    oklch(27.1% 0.068 268.7)

Export this scale for Tailwind in the Tailwind colors tool

#31479B 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)#0D539E0.037
Deuteranopia (no green cones)#0049990.033
Tritanopia (no blue cones)#005B6A0.114
Achromatopsia (no color)#4E4E4E0.139

Harmonies

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

Complementary

The opposite hue (180°).

  • #31479B

    #31479B

    oklch(43% 0.139 268.8)

  • #634C00

    #634C00

    oklch(42.9% 0.088 88.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31479B

    #31479B

    oklch(43% 0.139 268.8)

  • #00567E

    #00567E

    oklch(43% 0.096 238.3)

  • #5B3990

    #5B3990

    oklch(43% 0.138 298.4)

Open the analogous palette in the generator

Split complementary

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

  • #31479B

    #31479B

    oklch(43% 0.139 268.8)

  • #783F00

    #783F00

    oklch(43% 0.102 58.6)

  • #4A5700

    #4A5700

    oklch(43% 0.101 119.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31479B

    #31479B

    oklch(43% 0.139 268.8)

  • #8C261E

    #8C261E

    oklch(43% 0.139 28.7)

  • #006126

    #006126

    oklch(43% 0.122 148.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31479B

    #31479B

    oklch(43% 0.139 268.8)

  • #87244E

    #87244E

    oklch(43% 0.138 358.9)

  • #634C00

    #634C00

    oklch(42.9% 0.088 88.6)

  • #005D50

    #005D50

    oklch(42.8% 0.078 178.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #31479B 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.