#312D4E#312D4E

#312D4E is a dark, muted blue. Relative luminance 0.031; OKLCH L 31.8% C 0.058 H 288.2°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#312D4E
RGBrgb(49, 45, 78)
HSLhsl(247, 27%, 24%)
HSVhsv(247, 42%, 31%)
CMYKcmyk(37.2%, 42.3%, 0%, 69.4%)
CIE-LABlab(20.36, 10.88, -19.70)
CIE-LCHlch(20.36, 22.50, 298.90°)
OKLaboklab(31.77% 0.0181 -0.0552)
OKLCHoklch(31.77% 0.058 288.2)
XYZxyz(3.5798, 3.0797, 7.6121)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312D4E #4A4E2D
analogous
#2D3A4E #312D4E #422D4E
triadic
#312D4E #4E312D #2D4E31
tetradic
#312D4E #4E2D3A #4A4E2D #2D4E42
square
#312D4E #4E2D3A #4A4E2D #2D4E42
split-complementary
#312D4E #4E422D #3A4E2D
monochromatic
#0C0B13 #191727 #312D4E #494375 #625A9C

Accessibility & contrast

On white

13.00
#312D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#312D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312D4E
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312D4E#FFFFFF#000000##FFFFFF
##312D4E1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23324F
Deuteranopia (green-blind)
#23304D
Tritanopia (blue-blind)
#2A3339
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #312d4e;
/* rgb */ color: rgb(49, 45, 78);
/* oklch */ color: oklch(31.8% 0.058 288.2);
Tailwind
colors: {
  custom: {
    50: '#6a657f',
    500: '#312d4e',
    950: '#000000',
  },
}
SCSS
$custom: #312d4e;
$custom-light: #6a657f;
$custom-dark: #000000;
JSON
{
  "hex": "#312d4e",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 78
  },
  "hsl": {
    "h": 247.273,
    "s": 26.829,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31769,
    "c": 0.05806,
    "h": 288.2
  },
  "luminance": 0.0308
}

Semantic roles & 50–950 ramp

primary
#312D4E
secondary
#7B8057
accent
#C365B8
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06050A
muted
#7A7A7C

Preview Lab

Preview with #312D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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