#312E8A#312E8A

#312E8A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.148 H 277.7°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#312E8A
RGBrgb(49, 46, 138)
HSLhsl(242, 50%, 36%)
HSVhsv(242, 67%, 54%)
CMYKcmyk(64.5%, 66.7%, 0%, 45.9%)
CIE-LABlab(25.08, 30.80, -50.88)
CIE-LCHlch(25.08, 59.48, 301.19°)
OKLaboklab(36.69% 0.0197 -0.1466)
OKLCHoklch(36.69% 0.148 277.7)
XYZxyz(6.8296, 4.4414, 24.5372)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312E8A #878A2E
analogous
#2E598A #312E8A #5F2E8A
triadic
#312E8A #8A312E #2E8A31
tetradic
#312E8A #8A2E59 #878A2E #2E8A5F
square
#312E8A #8A2E59 #878A2E #2E8A5F
split-complementary
#312E8A #8A5F2E #598A2E
monochromatic
#100F2E #211F5C #312E8A #413DB8 #6A66CC

Accessibility & contrast

On white

11.12
#312E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312E8A
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312E8A#FFFFFF#000000##FFFFFF
##312E8A1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #312e8a;
/* rgb */ color: rgb(49, 46, 138);
/* oklch */ color: oklch(36.7% 0.148 277.7);
Tailwind
colors: {
  custom: {
    50: '#7467ad',
    500: '#312e8a',
    950: '#000000',
  },
}
SCSS
$custom: #312e8a;
$custom-light: #7467ad;
$custom-dark: #000000;
JSON
{
  "hex": "#312e8a",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 241.957,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36693,
    "c": 0.14795,
    "h": 277.7
  },
  "luminance": 0.04442
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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