#312D8A#312D8A

#312D8A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.149 H 277.9°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#312D8A
RGBrgb(49, 45, 138)
HSLhsl(243, 51%, 36%)
HSVhsv(243, 67%, 54%)
CMYKcmyk(64.5%, 67.4%, 0%, 45.9%)
CIE-LABlab(24.84, 31.44, -51.27)
CIE-LCHlch(24.84, 60.14, 301.52°)
OKLaboklab(36.52% 0.0206 -0.1478)
OKLCHoklch(36.52% 0.149 277.9)
XYZxyz(6.7910, 4.3642, 24.5243)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312D8A #868A2D
analogous
#2D578A #312D8A #5F2D8A
triadic
#312D8A #8A312D #2D8A31
tetradic
#312D8A #8A2D57 #868A2D #2D8A5F
square
#312D8A #8A2D57 #868A2D #2D8A5F
split-complementary
#312D8A #8A5F2D #578A2D
monochromatic
#100F2E #211E5C #312D8A #413CB8 #6965CD

Accessibility & contrast

On white

11.21
#312D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#312D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312D8A
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312D8A#FFFFFF#000000##FFFFFF
##312D8A1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312d8a;
/* rgb */ color: rgb(49, 45, 138);
/* oklch */ color: oklch(36.5% 0.149 277.9);
Tailwind
colors: {
  custom: {
    50: '#7466ad',
    500: '#312d8a',
    950: '#000000',
  },
}
SCSS
$custom: #312d8a;
$custom-light: #7466ad;
$custom-dark: #000000;
JSON
{
  "hex": "#312d8a",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 242.581,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36519,
    "c": 0.14921,
    "h": 277.9
  },
  "luminance": 0.04365
}

Semantic roles & 50–950 ramp

primary
#312D8A
secondary
#B0B360
accent
#DA4DD4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #312D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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