#311571#311571

#311571 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.145 H 288.5°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#311571
RGBrgb(49, 21, 113)
HSLhsl(258, 69%, 26%)
HSVhsv(258, 81%, 44%)
CMYKcmyk(56.6%, 81.4%, 0%, 55.7%)
CIE-LABlab(17.37, 37.23, -47.65)
CIE-LCHlch(17.37, 60.47, 308.00°)
OKLaboklab(30.45% 0.0458 -0.1371)
OKLCHoklch(30.45% 0.145 288.5)
XYZxyz(4.5145, 2.3813, 15.8413)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311571 #557115
analogous
#152771 #311571 #5F1571
triadic
#311571 #713115 #157131
tetradic
#311571 #711527 #557115 #15715F
square
#311571 #711527 #557115 #15715F
split-complementary
#311571 #715F15 #277115
monochromatic
#0B051A #1B0B3D #311571 #471FA5 #5E29D7

Accessibility & contrast

On white

14.22
#311571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#311571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311571
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311571#FFFFFF#000000##FFFFFF
##3115711.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#172F43
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311571;
/* rgb */ color: rgb(49, 21, 113);
/* oklch */ color: oklch(30.5% 0.145 288.5);
Tailwind
colors: {
  custom: {
    50: '#71569b',
    500: '#311571',
    950: '#000000',
  },
}
SCSS
$custom: #311571;
$custom-light: #71569b;
$custom-dark: #000000;
JSON
{
  "hex": "#311571",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 258.261,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30453,
    "c": 0.14452,
    "h": 288.5
  },
  "luminance": 0.02382
}

Semantic roles & 50–950 ramp

primary
#311571
secondary
#86A73B
accent
#EB3CB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #311571

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

Preview Lab → · Contrast checker → · Palette generator →

#311571 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva