#312E8B#312E8B

#312E8B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.149 H 277.6°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#312E8B
RGBrgb(49, 46, 139)
HSLhsl(242, 50%, 36%)
HSVhsv(242, 67%, 55%)
CMYKcmyk(64.7%, 66.9%, 0%, 45.5%)
CIE-LABlab(25.17, 31.15, -51.36)
CIE-LCHlch(25.17, 60.06, 301.24°)
OKLaboklab(36.79% 0.0196 -0.148)
OKLCHoklch(36.79% 0.149 277.6)
XYZxyz(6.9023, 4.4705, 24.9202)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312E8B #888B2E
analogous
#2E5A8B #312E8B #602E8B
triadic
#312E8B #8B312E #2E8B31
tetradic
#312E8B #8B2E5A #888B2E #2E8B60
square
#312E8B #8B2E5A #888B2E #2E8B60
split-complementary
#312E8B #8B602E #5A8B2E
monochromatic
#11102F #211F5D #312E8B #413DB9 #6A67CD

Accessibility & contrast

On white

11.09
#312E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#312E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312E8B
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312E8B#FFFFFF#000000##FFFFFF
##312E8B1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #312e8b;
/* rgb */ color: rgb(49, 46, 139);
/* oklch */ color: oklch(36.8% 0.149 277.6);
Tailwind
colors: {
  custom: {
    50: '#7467ae',
    500: '#312e8b',
    950: '#000000',
  },
}
SCSS
$custom: #312e8b;
$custom-light: #7467ae;
$custom-dark: #000000;
JSON
{
  "hex": "#312e8b",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 241.935,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36785,
    "c": 0.14931,
    "h": 277.6
  },
  "luminance": 0.04471
}

Semantic roles & 50–950 ramp

primary
#312E8B
secondary
#B1B361
accent
#DA4ED5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #312E8B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#312E8B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva