#312084#312084

#312084 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.157 H 281.8°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#312084
RGBrgb(49, 32, 132)
HSLhsl(250, 61%, 32%)
HSVhsv(250, 76%, 52%)
CMYKcmyk(62.9%, 75.8%, 0%, 48.2%)
CIE-LABlab(21.40, 37.29, -53.16)
CIE-LCHlch(21.40, 64.93, 305.05°)
OKLaboklab(33.88% 0.0321 -0.1533)
OKLCHoklch(33.88% 0.157 281.8)
XYZxyz(5.9467, 3.3515, 22.1589)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312084 #738420
analogous
#204184 #312084 #632084
triadic
#312084 #843120 #208431
tetradic
#312084 #842041 #738420 #208463
square
#312084 #842041 #738420 #208463
split-complementary
#312084 #846320 #418420
monochromatic
#0C0821 #1F1453 #312084 #432CB5 #624BD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##312084#FFFFFF#000000##FFFFFF
##3120841.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)
#003787
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #312084;
/* rgb */ color: rgb(49, 32, 132);
/* oklch */ color: oklch(33.9% 0.157 281.8);
Tailwind
colors: {
  custom: {
    50: '#745ea9',
    500: '#312084',
    950: '#000000',
  },
}
SCSS
$custom: #312084;
$custom-light: #745ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#312084",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 132
  },
  "hsl": {
    "h": 250.2,
    "s": 60.976,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33876,
    "c": 0.1566,
    "h": 281.8
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

primary
#312084
secondary
#A4B64A
accent
#E444C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #312084

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

Preview Lab → · Contrast checker → · Palette generator →

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