#31207C#31207C

#31207C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.146 H 283.4°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#31207C
RGBrgb(49, 32, 124)
HSLhsl(251, 59%, 31%)
HSVhsv(251, 74%, 49%)
CMYKcmyk(60.5%, 74.2%, 0%, 51.4%)
CIE-LABlab(20.60, 34.70, -49.41)
CIE-LCHlch(20.60, 60.38, 305.08°)
OKLaboklab(33.07% 0.0339 -0.1423)
OKLCHoklch(33.07% 0.146 283.4)
XYZxyz(5.4201, 3.1409, 19.3855)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31207C #6B7C20
analogous
#203D7C #31207C #5F207C
triadic
#31207C #7C3120 #207C31
tetradic
#31207C #7C203D #6B7C20 #207C5F
square
#31207C #7C203D #6B7C20 #207C5F
split-complementary
#31207C #7C5F20 #3D7C20
monochromatic
#0B071B #1E134B #31207C #442DAD #6047CF

Accessibility & contrast

On white

12.90
#31207C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#31207C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31207C
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31207C#FFFFFF#000000##FFFFFF
##31207C1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#05394C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #31207c;
/* rgb */ color: rgb(49, 32, 124);
/* oklch */ color: oklch(33.1% 0.146 283.4);
Tailwind
colors: {
  custom: {
    50: '#735da3',
    500: '#31207c',
    950: '#000000',
  },
}
SCSS
$custom: #31207c;
$custom-light: #735da3;
$custom-dark: #000000;
JSON
{
  "hex": "#31207c",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 124
  },
  "hsl": {
    "h": 251.087,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33065,
    "c": 0.1463,
    "h": 283.4
  },
  "luminance": 0.03141
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31207C

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

Preview Lab → · Contrast checker → · Palette generator →

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