#312D8F#312D8F

#312D8F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.156 H 277.4°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#312D8F
RGBrgb(49, 45, 143)
HSLhsl(242, 52%, 37%)
HSVhsv(242, 69%, 56%)
CMYKcmyk(65.7%, 68.5%, 0%, 43.9%)
CIE-LABlab(25.30, 33.17, -53.63)
CIE-LCHlch(25.30, 63.06, 301.74°)
OKLaboklab(36.99% 0.02 -0.1547)
OKLCHoklch(36.99% 0.156 277.4)
XYZxyz(7.1613, 4.5123, 26.4749)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312D8F #8B8F2D
analogous
#2D5A8F #312D8F #622D8F
triadic
#312D8F #8F312D #2D8F31
tetradic
#312D8F #8F2D5A #8B8F2D #2D8F62
square
#312D8F #8F2D5A #8B8F2D #2D8F62
split-complementary
#312D8F #8F622D #5A8F2D
monochromatic
#111032 #211E60 #312D8F #413CBE #6B67CF

Accessibility & contrast

On white

11.04
#312D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#312D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312D8F
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312D8F#FFFFFF#000000##FFFFFF
##312D8F1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #312d8f;
/* rgb */ color: rgb(49, 45, 143);
/* oklch */ color: oklch(37.0% 0.156 277.4);
Tailwind
colors: {
  custom: {
    50: '#7566b1',
    500: '#312d8f',
    950: '#000000',
  },
}
SCSS
$custom: #312d8f;
$custom-light: #7566b1;
$custom-dark: #000000;
JSON
{
  "hex": "#312d8f",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 242.449,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36991,
    "c": 0.15598,
    "h": 277.4
  },
  "luminance": 0.04513
}

Semantic roles & 50–950 ramp

primary
#312D8F
secondary
#B2B662
accent
#DC4CD6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #312D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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