#31488B

Closest named color: Cobalt (#1E488F). oklch(42% 0.115 267.1), rgb(49, 72, 139).

Aa

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

About this color

#31488B is a dark, moderately saturated blue. In OKLCH its lightness is 42%, its chroma 0.115 and its hue 267°. Its hue sits on the cool side of the wheel. The nearest named color is Cobalt (#1E488F), ΔE 0.020 away. White text reads best on it, at 8.64:1.

Hue familyBlues
Lightnessdark (42%)
Chromamoderately saturated (0.115)
Temperaturecool
Nearest nameCobalt (#1E488F)
Black text2.43:1
White text8.64:1

Values

HEX#31488B
RGBrgb(49, 72, 139)
HSLhsl(225, 48%, 37%)
OKLCHoklch(42% 0.115 267.1)

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 #31488B 8.64:1 AAA Lc -93.9 Preferred for body text
Black text on #31488B 2.43:1 Fails Lc 14.6 Not readable
#31488B text on white 8.64:1 AAA Lc 89.4 Fine for body text
#31488B text on black 2.43:1 Fails Lc -12.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 800.

  1. Step 50

    50

    #F3F5FC

    oklch(97.1% 0.01 273.4)

  2. Step 100

    100

    #E4EAF7

    oklch(93.6% 0.019 266)

  3. Step 200

    200

    #CED9F3

    oklch(88.5% 0.038 267.3)

  4. Step 300

    300

    #ADC0ED

    oklch(80.9% 0.067 267)

  5. Step 400

    400

    #839EE4

    oklch(70.7% 0.107 267.5)

  6. Step 500

    500

    #6485DC

    oklch(63.2% 0.137 266.8)

  7. Step 600

    600

    #4C6CCA

    oklch(55.5% 0.15 267.3)

  8. Step 700

    700

    #3D5AAE

    oklch(49% 0.138 266.9)

  9. Step 800

    800 (this color)

    #31488B

    oklch(42% 0.115 267.1)

  10. Step 900

    900

    #2C3E71

    oklch(37.6% 0.09 267.3)

  11. Step 950

    950

    #1A2542

    oklch(27% 0.056 266.9)

Export this scale for Tailwind in the Tailwind colors tool

#31488B 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)#27508D0.023
Deuteranopia (no green cones)#16488A0.025
Tritanopia (no blue cones)#0057620.097
Achromatopsia (no color)#4C4C4C0.115

Harmonies

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

Complementary

The opposite hue (180°).

  • #31488B

    #31488B

    oklch(42% 0.115 267.1)

  • #614900

    #614900

    oklch(41.9% 0.086 87)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31488B

    #31488B

    oklch(42% 0.115 267.1)

  • #005379

    #005379

    oklch(42% 0.093 237.7)

  • #553C83

    #553C83

    oklch(42% 0.115 297.4)

Open the analogous palette in the generator

Split complementary

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

  • #31488B

    #31488B

    oklch(42% 0.115 267.1)

  • #753C00

    #753C00

    oklch(42% 0.101 57.3)

  • #4A5300

    #4A5300

    oklch(42% 0.097 116.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31488B

    #31488B

    oklch(42% 0.115 267.1)

  • #802E28

    #802E28

    oklch(42% 0.115 27.3)

  • #115D24

    #115D24

    oklch(42% 0.114 147.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31488B

    #31488B

    oklch(42% 0.115 267.1)

  • #7B2D4E

    #7B2D4E

    oklch(42% 0.114 356.9)

  • #614900

    #614900

    oklch(41.9% 0.086 87)

  • #005B4C

    #005B4C

    oklch(42.1% 0.078 176.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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