#31498B

Closest named color: Cobalt (#1E488F). oklch(42.2% 0.113 266.6), rgb(49, 73, 139).

Aa

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

About this color

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

Hue familyBlues
Lightnessdark (42%)
Chromamoderately saturated (0.113)
Temperaturecool
Nearest nameCobalt (#1E488F)
Black text2.45:1
White text8.54:1

Values

HEX#31498B
RGBrgb(49, 73, 139)
HSLhsl(224, 48%, 37%)
OKLCHoklch(42.2% 0.113 266.6)

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 #31498B 8.54:1 AAA Lc -93.7 Preferred for body text
Black text on #31498B 2.45:1 Fails Lc 14.8 Not readable
#31498B text on white 8.54:1 AAA Lc 89.2 Fine for body text
#31498B text on black 2.45:1 Fails Lc -13.1 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

    #CED9F2

    oklch(88.5% 0.036 266.7)

  4. Step 300

    300

    #ADC0EC

    oklch(80.8% 0.066 266.6)

  5. Step 400

    400

    #829FE3

    oklch(70.8% 0.105 266.1)

  6. Step 500

    500

    #6485DB

    oklch(63.1% 0.135 266.7)

  7. Step 600

    600

    #4B6DC9

    oklch(55.6% 0.148 266.4)

  8. Step 700

    700

    #3D5BAE

    oklch(49.2% 0.137 266.5)

  9. Step 800

    800 (this color)

    #31498B

    oklch(42.2% 0.113 266.6)

  10. Step 900

    900

    #2C3F70

    oklch(37.8% 0.087 266.3)

  11. Step 950

    950

    #1A2542

    oklch(27% 0.056 266.9)

Export this scale for Tailwind in the Tailwind colors tool

#31498B 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)#29518D0.023
Deuteranopia (no green cones)#19488A0.024
Tritanopia (no blue cones)#0058630.096
Achromatopsia (no color)#4C4C4C0.113

Harmonies

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

Complementary

The opposite hue (180°).

  • #31498B

    #31498B

    oklch(42.2% 0.113 266.6)

  • #624A00

    #624A00

    oklch(42.3% 0.086 87.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31498B

    #31498B

    oklch(42.2% 0.113 266.6)

  • #005479

    #005479

    oklch(42.2% 0.092 236.7)

  • #553D83

    #553D83

    oklch(42.1% 0.114 297.1)

Open the analogous palette in the generator

Split complementary

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

  • #31498B

    #31498B

    oklch(42.2% 0.113 266.6)

  • #763C00

    #763C00

    oklch(42.2% 0.102 56.8)

  • #4B5400

    #4B5400

    oklch(42.3% 0.097 116.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31498B

    #31498B

    oklch(42.2% 0.113 266.6)

  • #802F2A

    #802F2A

    oklch(42.1% 0.113 26.6)

  • #155D24

    #155D24

    oklch(42.1% 0.113 146.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31498B

    #31498B

    oklch(42.2% 0.113 266.6)

  • #7B2E4F

    #7B2E4F

    oklch(42.2% 0.113 356.4)

  • #624A00

    #624A00

    oklch(42.3% 0.086 87.2)

  • #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 #31498B, closest first.

Similar named colors

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

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