#371E81#371E81

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

Color values

HEX#371E81
RGBrgb(55, 30, 129)
HSLhsl(255, 62%, 31%)
HSVhsv(255, 77%, 51%)
CMYKcmyk(57.4%, 76.7%, 0%, 49.4%)
CIE-LABlab(21.30, 38.31, -51.40)
CIE-LCHlch(21.30, 64.11, 306.70°)
OKLaboklab(33.86% 0.0437 -0.1479)
OKLCHoklch(33.86% 0.154 286.4)
XYZxyz(6.0011, 3.3254, 21.0903)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E81 #68811E
analogous
#1E3681 #371E81 #681E81
triadic
#371E81 #81371E #1E8137
tetradic
#371E81 #811E36 #68811E #1E8168
square
#371E81 #811E36 #68811E #1E8168
split-complementary
#371E81 #81681E #36811E
monochromatic
#0D071E #22124F #371E81 #4C2AB3 #6946D4

Accessibility & contrast

On white

12.61
#371E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#371E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E81
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E81#FFFFFF#000000##FFFFFF
##371E811.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#15394E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371e81;
/* rgb */ color: rgb(55, 30, 129);
/* oklch */ color: oklch(33.9% 0.154 286.4);
Tailwind
colors: {
  custom: {
    50: '#775da7',
    500: '#371e81',
    950: '#000000',
  },
}
SCSS
$custom: #371e81;
$custom-light: #775da7;
$custom-dark: #000000;
JSON
{
  "hex": "#371e81",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 255.152,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3386,
    "c": 0.15425,
    "h": 286.4
  },
  "luminance": 0.03326
}

Semantic roles & 50–950 ramp

primary
#371E81
secondary
#98B447
accent
#E542BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371E81

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

Preview Lab → · Contrast checker → · Palette generator →

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