#371D81#371D81

#371D81 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.155 H 286.6°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#371D81
RGBrgb(55, 29, 129)
HSLhsl(256, 63%, 31%)
HSVhsv(256, 78%, 51%)
CMYKcmyk(57.4%, 77.5%, 0%, 49.4%)
CIE-LABlab(21.12, 38.84, -51.71)
CIE-LCHlch(21.12, 64.67, 306.91°)
OKLaboklab(33.73% 0.0445 -0.1488)
OKLCHoklch(33.73% 0.155 286.6)
XYZxyz(5.9762, 3.2756, 21.0820)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D81 #67811D
analogous
#1D3581 #371D81 #691D81
triadic
#371D81 #81371D #1D8137
tetradic
#371D81 #811D35 #67811D #1D8169
square
#371D81 #811D35 #67811D #1D8169
split-complementary
#371D81 #81691D #35811D
monochromatic
#0C071D #22124F #371D81 #4C28B3 #6944D5

Accessibility & contrast

On white

12.69
#371D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371D81
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D81#FFFFFF#000000##FFFFFF
##371D811.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371d81;
/* rgb */ color: rgb(55, 29, 129);
/* oklch */ color: oklch(33.7% 0.155 286.6);
Tailwind
colors: {
  custom: {
    50: '#775ca7',
    500: '#371d81',
    950: '#000000',
  },
}
SCSS
$custom: #371d81;
$custom-light: #775ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#371d81",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 255.6,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33729,
    "c": 0.15533,
    "h": 286.6
  },
  "luminance": 0.03276
}

Semantic roles & 50–950 ramp

primary
#371D81
secondary
#97B446
accent
#E641BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #371D81

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

Preview Lab → · Contrast checker → · Palette generator →

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