#31206F#31206F

#31206F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.129 H 286.4°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#31206F
RGBrgb(49, 32, 111)
HSLhsl(253, 55%, 28%)
HSVhsv(253, 71%, 44%)
CMYKcmyk(55.9%, 71.2%, 0%, 56.5%)
CIE-LABlab(19.36, 30.46, -43.09)
CIE-LCHlch(19.36, 52.77, 305.25°)
OKLaboklab(31.8% 0.0365 -0.1238)
OKLCHoklch(31.8% 0.129 286.4)
XYZxyz(4.6515, 2.8334, 15.3377)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31206F #5E6F20
analogous
#20376F #31206F #58206F
triadic
#31206F #6F3120 #206F31
tetradic
#31206F #6F2037 #5E6F20 #206F58
square
#31206F #6F2037 #5E6F20 #206F58
split-complementary
#31206F #6F5820 #376F20
monochromatic
#0A0718 #1C123F #31206F #462E9F #5E41C8

Accessibility & contrast

On white

13.40
#31206F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#31206F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31206F
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31206F#FFFFFF#000000##FFFFFF
##31206F1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#183444
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #31206f;
/* rgb */ color: rgb(49, 32, 111);
/* oklch */ color: oklch(31.8% 0.129 286.4);
Tailwind
colors: {
  custom: {
    50: '#705d99',
    500: '#31206f',
    950: '#000000',
  },
}
SCSS
$custom: #31206f;
$custom-light: #705d99;
$custom-dark: #000000;
JSON
{
  "hex": "#31206f",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 111
  },
  "hsl": {
    "h": 252.911,
    "s": 55.245,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31803,
    "c": 0.12904,
    "h": 286.4
  },
  "luminance": 0.02834
}

Semantic roles & 50–950 ramp

primary
#31206F
secondary
#8FA348
accent
#DF49BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #31206F

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

Preview Lab → · Contrast checker → · Palette generator →

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