#312AB4#312AB4

#312AB4 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.3% C 0.206 H 274.2°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#312AB4
RGBrgb(49, 42, 180)
HSLhsl(243, 62%, 44%)
HSVhsv(243, 77%, 71%)
CMYKcmyk(72.8%, 76.7%, 0%, 29.4%)
CIE-LABlab(28.39, 47.28, -71.00)
CIE-LCHlch(28.39, 85.31, 303.66°)
OKLaboklab(40.31% 0.0152 -0.2054)
OKLCHoklch(40.31% 0.206 274.2)
XYZxyz(10.3301, 5.6032, 43.7083)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AB4 #ADB42A
analogous
#2A68B4 #312AB4 #762AB4
triadic
#312AB4 #B4312A #2AB431
tetradic
#312AB4 #B42A68 #ADB42A #2AB476
square
#312AB4 #B42A68 #ADB42A #2AB476
split-complementary
#312AB4 #B4762A #68B42A
monochromatic
#161351 #231E82 #312AB4 #4E47D4 #7E79E0

Accessibility & contrast

On white

9.90
#312AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#312AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312AB4
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AB4#FFFFFF#000000##FFFFFF
##312AB41.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B8
Deuteranopia (green-blind)
#003CB2
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #312ab4;
/* rgb */ color: rgb(49, 42, 180);
/* oklch */ color: oklch(40.3% 0.206 274.2);
Tailwind
colors: {
  custom: {
    50: '#7e66cc',
    500: '#312ab4',
    950: '#000000',
  },
}
SCSS
$custom: #312ab4;
$custom-light: #7e66cc;
$custom-dark: #000000;
JSON
{
  "hex": "#312ab4",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 243.043,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40313,
    "c": 0.20594,
    "h": 274.2
  },
  "luminance": 0.05604
}

Semantic roles & 50–950 ramp

primary
#312AB4
secondary
#C3C872
accent
#E543DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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