#312CB1#312CB1

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

Color values

HEX#312CB1
RGBrgb(49, 44, 177)
HSLhsl(242, 60%, 43%)
HSVhsv(242, 75%, 69%)
CMYKcmyk(72.3%, 75.1%, 0%, 30.6%)
CIE-LABlab(28.45, 45.22, -69.11)
CIE-LCHlch(28.45, 82.59, 303.20°)
OKLaboklab(40.26% 0.0149 -0.1999)
OKLCHoklch(40.26% 0.2 274.3)
XYZxyz(10.1005, 5.6277, 42.1404)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CB1 #ACB12C
analogous
#2C69B1 #312CB1 #732CB1
triadic
#312CB1 #B1312C #2CB131
tetradic
#312CB1 #B12C69 #ACB12C #2CB173
square
#312CB1 #B12C69 #ACB12C #2CB173
split-complementary
#312CB1 #B1732C #69B12C
monochromatic
#16144F #232080 #312CB1 #4E49D2 #7D7ADE

Accessibility & contrast

On white

9.88
#312CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312CB1
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CB1#FFFFFF#000000##FFFFFF
##312CB11.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B5
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #312cb1;
/* rgb */ color: rgb(49, 44, 177);
/* oklch */ color: oklch(40.3% 0.200 274.3);
Tailwind
colors: {
  custom: {
    50: '#7d67ca',
    500: '#312cb1',
    950: '#000000',
  },
}
SCSS
$custom: #312cb1;
$custom-light: #7d67ca;
$custom-dark: #000000;
JSON
{
  "hex": "#312cb1",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 242.256,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40264,
    "c": 0.20043,
    "h": 274.3
  },
  "luminance": 0.05629
}

Semantic roles & 50–950 ramp

primary
#312CB1
secondary
#C3C673
accent
#E344DD
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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