#31207B#31207B

#31207B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.145 H 283.6°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#31207B
RGBrgb(49, 32, 123)
HSLhsl(251, 59%, 30%)
HSVhsv(251, 74%, 48%)
CMYKcmyk(60.2%, 74%, 0%, 51.8%)
CIE-LABlab(20.50, 34.37, -48.93)
CIE-LCHlch(20.50, 59.80, 305.08°)
OKLaboklab(32.97% 0.0341 -0.1409)
OKLCHoklch(32.97% 0.145 283.6)
XYZxyz(5.3572, 3.1157, 19.0541)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31207B #6A7B20
analogous
#203C7B #31207B #5E207B
triadic
#31207B #7B3120 #207B31
tetradic
#31207B #7B203C #6A7B20 #207B5E
square
#31207B #7B203C #6A7B20 #207B5E
split-complementary
#31207B #7B5E20 #3C7B20
monochromatic
#0A071A #1E134A #31207B #442DAC #6046CF

Accessibility & contrast

On white

12.94
#31207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#31207B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31207B
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31207B#FFFFFF#000000##FFFFFF
##31207B1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#07394B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #31207b;
/* rgb */ color: rgb(49, 32, 123);
/* oklch */ color: oklch(33.0% 0.145 283.6);
Tailwind
colors: {
  custom: {
    50: '#725da2',
    500: '#31207b',
    950: '#000000',
  },
}
SCSS
$custom: #31207b;
$custom-light: #725da2;
$custom-dark: #000000;
JSON
{
  "hex": "#31207b",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 251.209,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32965,
    "c": 0.14499,
    "h": 283.6
  },
  "luminance": 0.03116
}

Semantic roles & 50–950 ramp

primary
#31207B
secondary
#9BAE49
accent
#E246C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #31207B

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

Preview Lab → · Contrast checker → · Palette generator →

#31207B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva