#31206B#31206B

#31206B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.124 H 287.5°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#31206B
RGBrgb(49, 32, 107)
HSLhsl(254, 54%, 27%)
HSVhsv(254, 70%, 42%)
CMYKcmyk(54.2%, 70.1%, 0%, 58%)
CIE-LABlab(19.00, 29.15, -41.08)
CIE-LCHlch(19.00, 50.38, 305.36°)
OKLaboklab(31.43% 0.0371 -0.1179)
OKLCHoklch(31.43% 0.124 287.5)
XYZxyz(4.4362, 2.7473, 14.2036)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31206B #5A6B20
analogous
#20356B #31206B #57206B
triadic
#31206B #6B3120 #206B31
tetradic
#31206B #6B2035 #5A6B20 #206B57
square
#31206B #6B2035 #5A6B20 #206B57
split-complementary
#31206B #6B5720 #356B20
monochromatic
#0B0718 #1B123C #31206B #472E9A #5E40C6

Accessibility & contrast

On white

13.55
#31206B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#31206B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31206B
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31206B#FFFFFF#000000##FFFFFF
##31206B1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#1B3342
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #31206b;
/* rgb */ color: rgb(49, 32, 107);
/* oklch */ color: oklch(31.4% 0.124 287.5);
Tailwind
colors: {
  custom: {
    50: '#6f5d96',
    500: '#31206b',
    950: '#000000',
  },
}
SCSS
$custom: #31206b;
$custom-light: #6f5d96;
$custom-dark: #000000;
JSON
{
  "hex": "#31206b",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 107
  },
  "hsl": {
    "h": 253.6,
    "s": 53.957,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3143,
    "c": 0.12359,
    "h": 287.5
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

primary
#31206B
secondary
#8B9F48
accent
#DD4ABC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #31206B

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

Preview Lab → · Contrast checker → · Palette generator →

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