#312AB5#312AB5

#312AB5 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.4% C 0.207 H 274.1°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#312AB5
RGBrgb(49, 42, 181)
HSLhsl(243, 62%, 44%)
HSVhsv(243, 77%, 71%)
CMYKcmyk(72.9%, 76.8%, 0%, 29%)
CIE-LABlab(28.50, 47.60, -71.42)
CIE-LCHlch(28.50, 85.83, 303.68°)
OKLaboklab(40.42% 0.015 -0.2066)
OKLCHoklch(40.42% 0.207 274.1)
XYZxyz(10.4323, 5.6441, 44.2467)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AB5 #AEB52A
analogous
#2A68B5 #312AB5 #762AB5
triadic
#312AB5 #B5312A #2AB531
tetradic
#312AB5 #B52A68 #AEB52A #2AB576
square
#312AB5 #B52A68 #AEB52A #2AB576
split-complementary
#312AB5 #B5762A #68B52A
monochromatic
#161352 #241E83 #312AB5 #4F48D4 #7F79E0

Accessibility & contrast

On white

9.86
#312AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#312AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312AB5
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AB5#FFFFFF#000000##FFFFFF
##312AB51.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB9
Deuteranopia (green-blind)
#003DB3
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #312ab5;
/* rgb */ color: rgb(49, 42, 181);
/* oklch */ color: oklch(40.4% 0.207 274.1);
Tailwind
colors: {
  custom: {
    50: '#7e66cd',
    500: '#312ab5',
    950: '#000000',
  },
}
SCSS
$custom: #312ab5;
$custom-light: #7e66cd;
$custom-dark: #000000;
JSON
{
  "hex": "#312ab5",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 243.022,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4042,
    "c": 0.20714,
    "h": 274.1
  },
  "luminance": 0.05645
}

Semantic roles & 50–950 ramp

primary
#312AB5
secondary
#C4C873
accent
#E542DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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