#312CBB#312CBB

#312CBB is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.3% C 0.212 H 273.5°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#312CBB
RGBrgb(49, 44, 187)
HSLhsl(242, 62%, 45%)
HSVhsv(242, 76%, 73%)
CMYKcmyk(73.8%, 76.5%, 0%, 26.7%)
CIE-LABlab(29.52, 48.46, -73.30)
CIE-LCHlch(29.52, 87.87, 303.47°)
OKLaboklab(41.33% 0.0129 -0.2121)
OKLCHoklch(41.33% 0.212 273.5)
XYZxyz(11.1340, 6.0410, 47.5833)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CBB #B6BB2C
analogous
#2C6EBB #312CBB #782CBB
triadic
#312CBB #BB312C #2CBB31
tetradic
#312CBB #BB2C6E #B6BB2C #2CBB78
square
#312CBB #BB2C6E #B6BB2C #2CBB78
split-complementary
#312CBB #BB782C #6EBB2C
monochromatic
#171558 #242089 #312CBB #534FD6 #8480E1

Accessibility & contrast

On white

9.51
#312CBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#312CBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CBB
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CBB#FFFFFF#000000##FFFFFF
##312CBB1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBF
Deuteranopia (green-blind)
#003FB8
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #312cbb;
/* rgb */ color: rgb(49, 44, 187);
/* oklch */ color: oklch(41.3% 0.212 273.5);
Tailwind
colors: {
  custom: {
    50: '#7f68d1',
    500: '#312cbb',
    950: '#000000',
  },
}
SCSS
$custom: #312cbb;
$custom-light: #7f68d1;
$custom-dark: #000000;
JSON
{
  "hex": "#312cbb",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 187
  },
  "hsl": {
    "h": 242.098,
    "s": 61.905,
    "l": 45.294
  },
  "oklch": {
    "l": 0.41329,
    "c": 0.21246,
    "h": 273.5
  },
  "luminance": 0.06042
}

Semantic roles & 50–950 ramp

primary
#312CBB
secondary
#C7CA79
accent
#E543DF
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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