#312CB6#312CB6

#312CB6 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.8% C 0.206 H 273.9°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#312CB6
RGBrgb(49, 44, 182)
HSLhsl(242, 61%, 44%)
HSVhsv(242, 76%, 71%)
CMYKcmyk(73.1%, 75.8%, 0%, 28.6%)
CIE-LABlab(28.98, 46.85, -71.22)
CIE-LCHlch(28.98, 85.24, 303.34°)
OKLaboklab(40.79% 0.0139 -0.206)
OKLCHoklch(40.79% 0.206 273.9)
XYZxyz(10.6080, 5.8307, 44.8133)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CB6 #B1B62C
analogous
#2C6CB6 #312CB6 #762CB6
triadic
#312CB6 #B6312C #2CB631
tetradic
#312CB6 #B62C6C #B1B62C #2CB676
square
#312CB6 #B62C6C #B1B62C #2CB676
split-complementary
#312CB6 #B6762C #6CB62C
monochromatic
#161453 #242085 #312CB6 #514CD4 #807DE0

Accessibility & contrast

On white

9.69
#312CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#312CB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CB6
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CB6#FFFFFF#000000##FFFFFF
##312CB61.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312cb6;
/* rgb */ color: rgb(49, 44, 182);
/* oklch */ color: oklch(40.8% 0.206 273.9);
Tailwind
colors: {
  custom: {
    50: '#7e67cd',
    500: '#312cb6',
    950: '#000000',
  },
}
SCSS
$custom: #312cb6;
$custom-light: #7e67cd;
$custom-dark: #000000;
JSON
{
  "hex": "#312cb6",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 242.174,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40794,
    "c": 0.20649,
    "h": 273.9
  },
  "luminance": 0.05832
}

Semantic roles & 50–950 ramp

primary
#312CB6
secondary
#C5C876
accent
#E444DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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