#312D91#312D91

#312D91 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.159 H 277.1°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#312D91
RGBrgb(49, 45, 145)
HSLhsl(242, 53%, 37%)
HSVhsv(242, 69%, 57%)
CMYKcmyk(66.2%, 69%, 0%, 43.1%)
CIE-LABlab(25.48, 33.87, -54.56)
CIE-LCHlch(25.48, 64.22, 301.83°)
OKLaboklab(37.18% 0.0197 -0.1574)
OKLCHoklch(37.18% 0.159 277.1)
XYZxyz(7.3142, 4.5735, 27.2799)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312D91 #8D912D
analogous
#2D5B91 #312D91 #632D91
triadic
#312D91 #91312D #2D9131
tetradic
#312D91 #912D5B #8D912D #2D9163
square
#312D91 #912D5B #8D912D #2D9163
split-complementary
#312D91 #91632D #5B912D
monochromatic
#111034 #211F62 #312D91 #413BC0 #6C68D0

Accessibility & contrast

On white

10.97
#312D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#312D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312D91
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312D91#FFFFFF#000000##FFFFFF
##312D911.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#00388F
Tritanopia (blue-blind)
#00475B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #312d91;
/* rgb */ color: rgb(49, 45, 145);
/* oklch */ color: oklch(37.2% 0.159 277.1);
Tailwind
colors: {
  custom: {
    50: '#7667b2',
    500: '#312d91',
    950: '#000000',
  },
}
SCSS
$custom: #312d91;
$custom-light: #7667b2;
$custom-dark: #000000;
JSON
{
  "hex": "#312d91",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 145
  },
  "hsl": {
    "h": 242.4,
    "s": 52.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37182,
    "c": 0.15865,
    "h": 277.1
  },
  "luminance": 0.04574
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312D91

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

Preview Lab → · Contrast checker → · Palette generator →

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