#312E8D#312E8D

#312E8D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.152 H 277.3°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#312E8D
RGBrgb(49, 46, 141)
HSLhsl(242, 51%, 37%)
HSVhsv(242, 67%, 55%)
CMYKcmyk(65.2%, 67.4%, 0%, 44.7%)
CIE-LABlab(25.35, 31.85, -52.30)
CIE-LCHlch(25.35, 61.24, 301.34°)
OKLaboklab(36.97% 0.0194 -0.1508)
OKLCHoklch(36.97% 0.152 277.3)
XYZxyz(7.0498, 4.5295, 25.6969)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312E8D #8A8D2E
analogous
#2E5B8D #312E8D #612E8D
triadic
#312E8D #8D312E #2E8D31
tetradic
#312E8D #8D2E5B #8A8D2E #2E8D61
square
#312E8D #8D2E5B #8A8D2E #2E8D61
split-complementary
#312E8D #8D612E #5B8D2E
monochromatic
#111031 #211F5F #312E8D #413DBB #6B68CE

Accessibility & contrast

On white

11.02
#312E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#312E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312E8D
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312E8D#FFFFFF#000000##FFFFFF
##312E8D1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #312e8d;
/* rgb */ color: rgb(49, 46, 141);
/* oklch */ color: oklch(37.0% 0.152 277.3);
Tailwind
colors: {
  custom: {
    50: '#7567af',
    500: '#312e8d',
    950: '#000000',
  },
}
SCSS
$custom: #312e8d;
$custom-light: #7567af;
$custom-dark: #000000;
JSON
{
  "hex": "#312e8d",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 241.895,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36972,
    "c": 0.15204,
    "h": 277.3
  },
  "luminance": 0.0453
}

Semantic roles & 50–950 ramp

primary
#312E8D
secondary
#B2B562
accent
#DA4ED6
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #312E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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