#312D90#312D90

#312D90 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.157 H 277.3°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#312D90
RGBrgb(49, 45, 144)
HSLhsl(242, 52%, 37%)
HSVhsv(242, 69%, 56%)
CMYKcmyk(66%, 68.7%, 0%, 43.5%)
CIE-LABlab(25.39, 33.52, -54.09)
CIE-LCHlch(25.39, 63.64, 301.78°)
OKLaboklab(37.09% 0.0199 -0.156)
OKLCHoklch(37.09% 0.157 277.3)
XYZxyz(7.2374, 4.5428, 26.8756)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312D90 #8C902D
analogous
#2D5B90 #312D90 #632D90
triadic
#312D90 #90312D #2D9031
tetradic
#312D90 #902D5B #8C902D #2D9063
square
#312D90 #902D5B #8C902D #2D9063
split-complementary
#312D90 #90632D #5B902D
monochromatic
#111033 #211E61 #312D90 #413CBF #6C68D0

Accessibility & contrast

On white

11.00
#312D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312D90
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312D90#FFFFFF#000000##FFFFFF
##312D901.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312d90;
/* rgb */ color: rgb(49, 45, 144);
/* oklch */ color: oklch(37.1% 0.157 277.3);
Tailwind
colors: {
  custom: {
    50: '#7667b1',
    500: '#312d90',
    950: '#000000',
  },
}
SCSS
$custom: #312d90;
$custom-light: #7667b1;
$custom-dark: #000000;
JSON
{
  "hex": "#312d90",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 144
  },
  "hsl": {
    "h": 242.424,
    "s": 52.381,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37086,
    "c": 0.15731,
    "h": 277.3
  },
  "luminance": 0.04543
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312D90

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

Preview Lab → · Contrast checker → · Palette generator →

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