#312BB1#312BB1

#312BB1 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.1% C 0.201 H 274.4°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#312BB1
RGBrgb(49, 43, 177)
HSLhsl(243, 61%, 43%)
HSVhsv(243, 76%, 69%)
CMYKcmyk(72.3%, 75.7%, 0%, 30.6%)
CIE-LABlab(28.26, 45.77, -69.43)
CIE-LCHlch(28.26, 83.16, 303.40°)
OKLaboklab(40.13% 0.0154 -0.2008)
OKLCHoklch(40.13% 0.201 274.4)
XYZxyz(10.0637, 5.5541, 42.1281)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BB1 #ABB12B
analogous
#2B68B1 #312BB1 #742BB1
triadic
#312BB1 #B1312B #2BB131
tetradic
#312BB1 #B12B68 #ABB12B #2BB174
square
#312BB1 #B12B68 #ABB12B #2BB174
split-complementary
#312BB1 #B1742B #68B12B
monochromatic
#16134F #231F80 #312BB1 #4D47D2 #7D78DE

Accessibility & contrast

On white

9.95
#312BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#312BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BB1
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BB1#FFFFFF#000000##FFFFFF
##312BB11.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312bb1;
/* rgb */ color: rgb(49, 43, 177);
/* oklch */ color: oklch(40.1% 0.201 274.4);
Tailwind
colors: {
  custom: {
    50: '#7d67ca',
    500: '#312bb1',
    950: '#000000',
  },
}
SCSS
$custom: #312bb1;
$custom-light: #7d67ca;
$custom-dark: #000000;
JSON
{
  "hex": "#312bb1",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 177
  },
  "hsl": {
    "h": 242.687,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40126,
    "c": 0.2014,
    "h": 274.4
  },
  "luminance": 0.05555
}

Semantic roles & 50–950 ramp

primary
#312BB1
secondary
#C2C672
accent
#E444DD
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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