#312086#312086

#312086 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.159 H 281.5°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#312086
RGBrgb(49, 32, 134)
HSLhsl(250, 61%, 33%)
HSVhsv(250, 76%, 53%)
CMYKcmyk(63.4%, 76.1%, 0%, 47.5%)
CIE-LABlab(21.60, 37.93, -54.08)
CIE-LCHlch(21.60, 66.06, 305.05°)
OKLaboklab(34.08% 0.0316 -0.156)
OKLCHoklch(34.08% 0.159 281.5)
XYZxyz(6.0849, 3.4068, 22.8866)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312086 #758620
analogous
#204286 #312086 #642086
triadic
#312086 #863120 #208631
tetradic
#312086 #862042 #758620 #208664
square
#312086 #862042 #758620 #208664
split-complementary
#312086 #866420 #428620
monochromatic
#0D0823 #1F1455 #312086 #432CB7 #634CD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##312086#FFFFFF#000000##FFFFFF
##3120861.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)
#003789
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312086;
/* rgb */ color: rgb(49, 32, 134);
/* oklch */ color: oklch(34.1% 0.159 281.5);
Tailwind
colors: {
  custom: {
    50: '#755eaa',
    500: '#312086',
    950: '#000000',
  },
}
SCSS
$custom: #312086;
$custom-light: #755eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#312086",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 134
  },
  "hsl": {
    "h": 250,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34082,
    "c": 0.15914,
    "h": 281.5
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#312086
secondary
#A5B74B
accent
#E543CA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #312086

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

Preview Lab → · Contrast checker → · Palette generator →

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