#312184#312184

#312184 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.155 H 281.6°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#312184
RGBrgb(49, 33, 132)
HSLhsl(250, 60%, 32%)
HSVhsv(250, 75%, 52%)
CMYKcmyk(62.9%, 75%, 0%, 48.2%)
CIE-LABlab(21.60, 36.72, -52.83)
CIE-LCHlch(21.60, 64.33, 304.80°)
OKLaboklab(34.02% 0.0313 -0.1523)
OKLCHoklch(34.02% 0.156 281.6)
XYZxyz(5.9740, 3.4062, 22.1680)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312184 #748421
analogous
#214384 #312184 #632184
triadic
#312184 #843121 #218431
tetradic
#312184 #842143 #748421 #218463
square
#312184 #842143 #748421 #218463
split-complementary
#312184 #846321 #438421
monochromatic
#0D0922 #1F1553 #312184 #432DB5 #634DD2

Accessibility & contrast

On white

12.49
#312184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#312184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312184
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312184#FFFFFF#000000##FFFFFF
##3121841.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312184;
/* rgb */ color: rgb(49, 33, 132);
/* oklch */ color: oklch(34.0% 0.155 281.6);
Tailwind
colors: {
  custom: {
    50: '#745ea9',
    500: '#312184',
    950: '#000000',
  },
}
SCSS
$custom: #312184;
$custom-light: #745ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#312184",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 132
  },
  "hsl": {
    "h": 249.697,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34019,
    "c": 0.1555,
    "h": 281.6
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#312184
secondary
#A4B64B
accent
#E345CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #312184

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

Preview Lab → · Contrast checker → · Palette generator →

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