#312C8B#312C8B

#312C8B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.152 H 278.1°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#312C8B
RGBrgb(49, 44, 139)
HSLhsl(243, 52%, 36%)
HSVhsv(243, 68%, 55%)
CMYKcmyk(64.7%, 68.3%, 0%, 45.5%)
CIE-LABlab(24.70, 32.42, -52.13)
CIE-LCHlch(24.70, 61.39, 301.88°)
OKLaboklab(36.44% 0.0213 -0.1503)
OKLCHoklch(36.44% 0.152 278.1)
XYZxyz(6.8260, 4.3179, 24.8948)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312C8B #868B2C
analogous
#2C568B #312C8B #602C8B
triadic
#312C8B #8B312C #2C8B31
tetradic
#312C8B #8B2C56 #868B2C #2C8B60
square
#312C8B #8B2C56 #868B2C #2C8B60
split-complementary
#312C8B #8B602C #568B2C
monochromatic
#100F2E #211D5D #312C8B #413BB9 #6964CE

Accessibility & contrast

On white

11.27
#312C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#312C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312C8B
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312C8B#FFFFFF#000000##FFFFFF
##312C8B1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #312c8b;
/* rgb */ color: rgb(49, 44, 139);
/* oklch */ color: oklch(36.4% 0.152 278.1);
Tailwind
colors: {
  custom: {
    50: '#7566ae',
    500: '#312c8b',
    950: '#000000',
  },
}
SCSS
$custom: #312c8b;
$custom-light: #7566ae;
$custom-dark: #000000;
JSON
{
  "hex": "#312c8b",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 243.158,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36442,
    "c": 0.1518,
    "h": 278.1
  },
  "luminance": 0.04318
}

Semantic roles & 50–950 ramp

primary
#312C8B
secondary
#B0B45F
accent
#DB4CD4
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #312C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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