#312DB6#312DB6

#312DB6 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.9% C 0.206 H 273.7°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#312DB6
RGBrgb(49, 45, 182)
HSLhsl(242, 60%, 45%)
HSVhsv(242, 75%, 71%)
CMYKcmyk(73.1%, 75.3%, 0%, 28.6%)
CIE-LABlab(29.17, 46.30, -70.90)
CIE-LCHlch(29.17, 84.68, 303.15°)
OKLaboklab(40.93% 0.0134 -0.2051)
OKLCHoklch(40.93% 0.206 273.7)
XYZxyz(10.6457, 5.9061, 44.8258)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DB6 #B2B62D
analogous
#2D6EB6 #312DB6 #762DB6
triadic
#312DB6 #B6312D #2DB631
tetradic
#312DB6 #B62D6E #B2B62D #2DB676
square
#312DB6 #B62D6E #B2B62D #2DB676
split-complementary
#312DB6 #B6762D #6EB62D
monochromatic
#171554 #242185 #312DB6 #514DD3 #817EDF

Accessibility & contrast

On white

9.63
#312DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#312DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312DB6
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DB6#FFFFFF#000000##FFFFFF
##312DB61.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBA
Deuteranopia (green-blind)
#003EB4
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #312db6;
/* rgb */ color: rgb(49, 45, 182);
/* oklch */ color: oklch(40.9% 0.206 273.7);
Tailwind
colors: {
  custom: {
    50: '#7e68cd',
    500: '#312db6',
    950: '#000000',
  },
}
SCSS
$custom: #312db6;
$custom-light: #7e68cd;
$custom-dark: #000000;
JSON
{
  "hex": "#312db6",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 241.752,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4093,
    "c": 0.20554,
    "h": 273.7
  },
  "luminance": 0.05907
}

Semantic roles & 50–950 ramp

primary
#312DB6
secondary
#C5C877
accent
#E344DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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