#312C91#312C91

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

Color values

HEX#312C91
RGBrgb(49, 44, 145)
HSLhsl(243, 53%, 37%)
HSVhsv(243, 70%, 57%)
CMYKcmyk(66.2%, 69.7%, 0%, 43.1%)
CIE-LABlab(25.25, 34.49, -54.94)
CIE-LCHlch(25.25, 64.86, 302.12°)
OKLaboklab(37.02% 0.0205 -0.1585)
OKLCHoklch(37.02% 0.16 277.4)
XYZxyz(7.2765, 4.4981, 27.2673)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312C91 #8C912C
analogous
#2C5A91 #312C91 #632C91
triadic
#312C91 #91312C #2C9131
tetradic
#312C91 #912C5A #8C912C #2C9163
square
#312C91 #912C5A #8C912C #2C9163
split-complementary
#312C91 #91632C #5A912C
monochromatic
#111033 #211E62 #312C91 #413AC0 #6C67D1

Accessibility & contrast

On white

11.05
#312C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312C91
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312C91#FFFFFF#000000##FFFFFF
##312C911.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312c91;
/* rgb */ color: rgb(49, 44, 145);
/* oklch */ color: oklch(37.0% 0.160 277.4);
Tailwind
colors: {
  custom: {
    50: '#7666b2',
    500: '#312c91',
    950: '#000000',
  },
}
SCSS
$custom: #312c91;
$custom-light: #7666b2;
$custom-dark: #000000;
JSON
{
  "hex": "#312c91",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 145
  },
  "hsl": {
    "h": 242.97,
    "s": 53.439,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37016,
    "c": 0.15984,
    "h": 277.4
  },
  "luminance": 0.04499
}

Semantic roles & 50–950 ramp

primary
#312C91
secondary
#B3B762
accent
#DD4BD6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #312C91

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

Preview Lab → · Contrast checker → · Palette generator →

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