#31206C#31206C

#31206C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.5% C 0.125 H 287.2°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#31206C
RGBrgb(49, 32, 108)
HSLhsl(253, 54%, 27%)
HSVhsv(253, 70%, 42%)
CMYKcmyk(54.6%, 70.4%, 0%, 57.6%)
CIE-LABlab(19.09, 29.48, -41.59)
CIE-LCHlch(19.09, 50.98, 305.33°)
OKLaboklab(31.52% 0.0369 -0.1194)
OKLCHoklch(31.52% 0.125 287.2)
XYZxyz(4.4891, 2.7685, 14.4823)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31206C #5B6C20
analogous
#20356C #31206C #57206C
triadic
#31206C #6C3120 #206C31
tetradic
#31206C #6C2035 #5B6C20 #206C57
square
#31206C #6C2035 #5B6C20 #206C57
split-complementary
#31206C #6C5720 #356C20
monochromatic
#0B0718 #1C123D #31206C #462E9B #5E40C6

Accessibility & contrast

On white

13.52
#31206C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31206C
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31206C#FFFFFF#000000##FFFFFF
##31206C1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31206c;
/* rgb */ color: rgb(49, 32, 108);
/* oklch */ color: oklch(31.5% 0.125 287.2);
Tailwind
colors: {
  custom: {
    50: '#705d97',
    500: '#31206c',
    950: '#000000',
  },
}
SCSS
$custom: #31206c;
$custom-light: #705d97;
$custom-dark: #000000;
JSON
{
  "hex": "#31206c",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 108
  },
  "hsl": {
    "h": 253.421,
    "s": 54.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31522,
    "c": 0.12496,
    "h": 287.2
  },
  "luminance": 0.02769
}

Semantic roles & 50–950 ramp

primary
#31206C
secondary
#8CA048
accent
#DE4ABD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #31206C

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

Preview Lab → · Contrast checker → · Palette generator →

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