#312E4E#312E4E

#312E4E is a dark, muted blue. Relative luminance 0.032; OKLCH L 32.0% C 0.056 H 287.1°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#312E4E
RGBrgb(49, 46, 78)
HSLhsl(246, 26%, 24%)
HSVhsv(246, 41%, 31%)
CMYKcmyk(37.2%, 41%, 0%, 69.4%)
CIE-LABlab(20.66, 10.18, -19.23)
CIE-LCHlch(20.66, 21.75, 297.89°)
OKLaboklab(32% 0.0165 -0.0538)
OKLCHoklch(32% 0.056 287.1)
XYZxyz(3.6184, 3.1569, 7.6250)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312E4E #4B4E2E
analogous
#2E3B4E #312E4E #412E4E
triadic
#312E4E #4E312E #2E4E31
tetradic
#312E4E #4E2E3B #4B4E2E #2E4E41
square
#312E4E #4E2E3B #4B4E2E #2E4E41
split-complementary
#312E4E #4E412E #3B4E2E
monochromatic
#0C0B13 #191728 #312E4E #494574 #615B9B

Accessibility & contrast

On white

12.87
#312E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#312E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312E4E
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312E4E#FFFFFF#000000##FFFFFF
##312E4E1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24334F
Deuteranopia (green-blind)
#24314D
Tritanopia (blue-blind)
#2A343A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #312e4e;
/* rgb */ color: rgb(49, 46, 78);
/* oklch */ color: oklch(32.0% 0.056 287.1);
Tailwind
colors: {
  custom: {
    50: '#6a667f',
    500: '#312e4e',
    950: '#000000',
  },
}
SCSS
$custom: #312e4e;
$custom-light: #6a667f;
$custom-dark: #000000;
JSON
{
  "hex": "#312e4e",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 78
  },
  "hsl": {
    "h": 245.625,
    "s": 25.806,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31999,
    "c": 0.05627,
    "h": 287.1
  },
  "luminance": 0.03157
}

Semantic roles & 50–950 ramp

primary
#312E4E
secondary
#7C7F58
accent
#C266BA
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #312E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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