#371F82#371F82

#371F82 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.154 H 286.0°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#371F82
RGBrgb(55, 31, 130)
HSLhsl(255, 61%, 32%)
HSVhsv(255, 76%, 51%)
CMYKcmyk(57.7%, 76.2%, 0%, 49%)
CIE-LABlab(21.59, 38.08, -51.56)
CIE-LCHlch(21.59, 64.10, 306.45°)
OKLaboklab(34.1% 0.0426 -0.1484)
OKLCHoklch(34.1% 0.154 286)
XYZxyz(6.0936, 3.4036, 21.4506)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F82 #6A821F
analogous
#1F3982 #371F82 #691F82
triadic
#371F82 #82371F #1F8237
tetradic
#371F82 #821F39 #6A821F #1F8269
square
#371F82 #821F39 #6A821F #1F8269
split-complementary
#371F82 #82691F #39821F
monochromatic
#0D071F #221351 #371F82 #4C2BB3 #6A48D3

Accessibility & contrast

On white

12.49
#371F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#371F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F82
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F82#FFFFFF#000000##FFFFFF
##371F821.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#143A4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #371f82;
/* rgb */ color: rgb(55, 31, 130);
/* oklch */ color: oklch(34.1% 0.154 286.0);
Tailwind
colors: {
  custom: {
    50: '#775da7',
    500: '#371f82',
    950: '#000000',
  },
}
SCSS
$custom: #371f82;
$custom-light: #775da7;
$custom-dark: #000000;
JSON
{
  "hex": "#371f82",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 254.545,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34095,
    "c": 0.15439,
    "h": 286
  },
  "luminance": 0.03404
}

Semantic roles & 50–950 ramp

primary
#371F82
secondary
#9AB548
accent
#E543BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371F82

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

Preview Lab → · Contrast checker → · Palette generator →

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