#312CB5#312CB5

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

Color values

HEX#312CB5
RGBrgb(49, 44, 181)
HSLhsl(242, 61%, 44%)
HSVhsv(242, 76%, 71%)
CMYKcmyk(72.9%, 75.7%, 0%, 29%)
CIE-LABlab(28.88, 46.52, -70.80)
CIE-LCHlch(28.88, 84.71, 303.31°)
OKLaboklab(40.69% 0.0141 -0.2048)
OKLCHoklch(40.69% 0.205 273.9)
XYZxyz(10.5050, 5.7895, 44.2710)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CB5 #B0B52C
analogous
#2C6CB5 #312CB5 #762CB5
triadic
#312CB5 #B5312C #2CB531
tetradic
#312CB5 #B52C6C #B0B52C #2CB576
square
#312CB5 #B52C6C #B0B52C #2CB576
split-complementary
#312CB5 #B5762C #6CB52C
monochromatic
#161453 #242084 #312CB5 #504BD3 #807CDF

Accessibility & contrast

On white

9.73
#312CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#312CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CB5
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CB5#FFFFFF#000000##FFFFFF
##312CB51.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB9
Deuteranopia (green-blind)
#003EB3
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #312cb5;
/* rgb */ color: rgb(49, 44, 181);
/* oklch */ color: oklch(40.7% 0.205 273.9);
Tailwind
colors: {
  custom: {
    50: '#7e67cc',
    500: '#312cb5',
    950: '#000000',
  },
}
SCSS
$custom: #312cb5;
$custom-light: #7e67cc;
$custom-dark: #000000;
JSON
{
  "hex": "#312cb5",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 242.19,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40687,
    "c": 0.20528,
    "h": 273.9
  },
  "luminance": 0.05791
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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