#312C8E#312C8E

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

Color values

HEX#312C8E
RGBrgb(49, 44, 142)
HSLhsl(243, 53%, 36%)
HSVhsv(243, 69%, 56%)
CMYKcmyk(65.5%, 69%, 0%, 44.3%)
CIE-LABlab(24.97, 33.45, -53.54)
CIE-LCHlch(24.97, 63.13, 302.00°)
OKLaboklab(36.73% 0.0209 -0.1544)
OKLCHoklch(36.73% 0.156 277.7)
XYZxyz(7.0482, 4.4068, 26.0651)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312C8E #898E2C
analogous
#2C588E #312C8E #622C8E
triadic
#312C8E #8E312C #2C8E31
tetradic
#312C8E #8E2C58 #898E2C #2C8E62
square
#312C8E #8E2C58 #898E2C #2C8E62
split-complementary
#312C8E #8E622C #588E2C
monochromatic
#110F31 #211E5F #312C8E #413ABD #6B65CF

Accessibility & contrast

On white

11.16
#312C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#312C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312C8E
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312C8E#FFFFFF#000000##FFFFFF
##312C8E1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #312c8e;
/* rgb */ color: rgb(49, 44, 142);
/* oklch */ color: oklch(36.7% 0.156 277.7);
Tailwind
colors: {
  custom: {
    50: '#7566b0',
    500: '#312c8e',
    950: '#000000',
  },
}
SCSS
$custom: #312c8e;
$custom-light: #7566b0;
$custom-dark: #000000;
JSON
{
  "hex": "#312c8e",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 243.061,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36727,
    "c": 0.15584,
    "h": 277.7
  },
  "luminance": 0.04407
}

Semantic roles & 50–950 ramp

primary
#312C8E
secondary
#B1B660
accent
#DC4CD5
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #312C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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