#312DBC#312DBC

#312DBC is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.6% C 0.213 H 273.3°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#312DBC
RGBrgb(49, 45, 188)
HSLhsl(242, 61%, 46%)
HSVhsv(242, 76%, 74%)
CMYKcmyk(73.9%, 76.1%, 0%, 26.3%)
CIE-LABlab(29.81, 48.24, -73.40)
CIE-LCHlch(29.81, 87.84, 303.32°)
OKLaboklab(41.57% 0.0122 -0.2124)
OKLCHoklch(41.57% 0.213 273.3)
XYZxyz(11.2791, 6.1594, 48.1617)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DBC #B8BC2D
analogous
#2D71BC #312DBC #782DBC
triadic
#312DBC #BC312D #2DBC31
tetradic
#312DBC #BC2D71 #B8BC2D #2DBC78
square
#312DBC #BC2D71 #B8BC2D #2DBC78
split-complementary
#312DBC #BC782D #71BC2D
monochromatic
#171559 #24218B #312DBC #5551D5 #8582E1

Accessibility & contrast

On white

9.41
#312DBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#312DBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312DBC
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DBC#FFFFFF#000000##FFFFFF
##312DBC1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC0
Deuteranopia (green-blind)
#003FB9
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #312dbc;
/* rgb */ color: rgb(49, 45, 188);
/* oklch */ color: oklch(41.6% 0.213 273.3);
Tailwind
colors: {
  custom: {
    50: '#7f68d2',
    500: '#312dbc',
    950: '#000000',
  },
}
SCSS
$custom: #312dbc;
$custom-light: #7f68d2;
$custom-dark: #000000;
JSON
{
  "hex": "#312dbc",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 188
  },
  "hsl": {
    "h": 241.678,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.41569,
    "c": 0.21273,
    "h": 273.3
  },
  "luminance": 0.06161
}

Semantic roles & 50–950 ramp

primary
#312DBC
secondary
#C8CA7B
accent
#E443E0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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