#312182#312182

#312182 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.153 H 282.0°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#312182
RGBrgb(49, 33, 130)
HSLhsl(250, 60%, 32%)
HSVhsv(250, 75%, 51%)
CMYKcmyk(62.3%, 74.6%, 0%, 49%)
CIE-LABlab(21.40, 36.07, -51.89)
CIE-LCHlch(21.40, 63.20, 304.80°)
OKLaboklab(33.82% 0.0318 -0.1496)
OKLCHoklch(33.82% 0.153 282)
XYZxyz(5.8385, 3.3520, 21.4541)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312182 #728221
analogous
#214282 #312182 #622182
triadic
#312182 #823121 #218231
tetradic
#312182 #822142 #728221 #218262
square
#312182 #822142 #728221 #218262
split-complementary
#312182 #826221 #428221
monochromatic
#0C0820 #1F1551 #312182 #432DB3 #624CD2

Accessibility & contrast

On white

12.57
#312182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#312182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312182
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312182#FFFFFF#000000##FFFFFF
##3121821.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #312182;
/* rgb */ color: rgb(49, 33, 130);
/* oklch */ color: oklch(33.8% 0.153 282.0);
Tailwind
colors: {
  custom: {
    50: '#745ea7',
    500: '#312182',
    950: '#000000',
  },
}
SCSS
$custom: #312182;
$custom-light: #745ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#312182",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 249.897,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33816,
    "c": 0.15293,
    "h": 282
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

primary
#312182
secondary
#A3B44A
accent
#E345C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #312182

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

Preview Lab → · Contrast checker → · Palette generator →

#312182 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva