#312F4E#312F4E

#312F4E is a dark, muted blue. Relative luminance 0.032; OKLCH L 32.2% C 0.054 H 285.9°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#312F4E
RGBrgb(49, 47, 78)
HSLhsl(244, 25%, 25%)
HSVhsv(244, 40%, 31%)
CMYKcmyk(37.2%, 39.7%, 0%, 69.4%)
CIE-LABlab(20.97, 9.48, -18.75)
CIE-LCHlch(20.97, 21.01, 296.81°)
OKLaboklab(32.23% 0.0149 -0.0524)
OKLCHoklch(32.23% 0.054 285.9)
XYZxyz(3.6579, 3.2360, 7.6381)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F4E #4C4E2F
analogous
#2F3D4E #312F4E #412F4E
triadic
#312F4E #4E312F #2F4E31
tetradic
#312F4E #4E2F3D #4C4E2F #2F4E41
square
#312F4E #4E2F3D #4C4E2F #2F4E41
split-complementary
#312F4E #4E412F #3D4E2F
monochromatic
#0C0C13 #191828 #312F4E #494674 #615D9A

Accessibility & contrast

On white

12.75
#312F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#312F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312F4E
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F4E#FFFFFF#000000##FFFFFF
##312F4E1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26334F
Deuteranopia (green-blind)
#25324D
Tritanopia (blue-blind)
#2A353A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #312f4e;
/* rgb */ color: rgb(49, 47, 78);
/* oklch */ color: oklch(32.2% 0.054 285.9);
Tailwind
colors: {
  custom: {
    50: '#6a677f',
    500: '#312f4e',
    950: '#000000',
  },
}
SCSS
$custom: #312f4e;
$custom-light: #6a677f;
$custom-dark: #000000;
JSON
{
  "hex": "#312f4e",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 78
  },
  "hsl": {
    "h": 243.871,
    "s": 24.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.32231,
    "c": 0.05448,
    "h": 285.9
  },
  "luminance": 0.03236
}

Semantic roles & 50–950 ramp

primary
#312F4E
secondary
#7D7F5A
accent
#C167BB
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #312F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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