#371D82#371D82

#371D82 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.157 H 286.4°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#371D82
RGBrgb(55, 29, 130)
HSLhsl(255, 64%, 31%)
HSVhsv(255, 78%, 51%)
CMYKcmyk(57.7%, 77.7%, 0%, 49%)
CIE-LABlab(21.22, 39.15, -52.18)
CIE-LCHlch(21.22, 65.23, 306.88°)
OKLaboklab(33.83% 0.0442 -0.1502)
OKLCHoklch(33.83% 0.157 286.4)
XYZxyz(6.0430, 3.3023, 21.4338)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D82 #68821D
analogous
#1D3582 #371D82 #691D82
triadic
#371D82 #82371D #1D8237
tetradic
#371D82 #821D35 #68821D #1D8269
square
#371D82 #821D35 #68821D #1D8269
split-complementary
#371D82 #82691D #35821D
monochromatic
#0D071E #221250 #371D82 #4C28B4 #6944D5

Accessibility & contrast

On white

12.65
#371D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#371D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D82
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D82#FFFFFF#000000##FFFFFF
##371D821.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#14394E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371d82;
/* rgb */ color: rgb(55, 29, 130);
/* oklch */ color: oklch(33.8% 0.157 286.4);
Tailwind
colors: {
  custom: {
    50: '#775ca7',
    500: '#371d82',
    950: '#000000',
  },
}
SCSS
$custom: #371d82;
$custom-light: #775ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#371d82",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 255.446,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3383,
    "c": 0.15655,
    "h": 286.4
  },
  "luminance": 0.03303
}

Semantic roles & 50–950 ramp

primary
#371D82
secondary
#98B546
accent
#E741BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371D82

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

Preview Lab → · Contrast checker → · Palette generator →

#371D82 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva