#371F87#371F87

#371F87 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.161 H 284.9°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#371F87
RGBrgb(55, 31, 135)
HSLhsl(254, 63%, 33%)
HSVhsv(254, 77%, 53%)
CMYKcmyk(59.3%, 77%, 0%, 47.1%)
CIE-LABlab(22.09, 39.62, -53.88)
CIE-LCHlch(22.09, 66.88, 306.33°)
OKLaboklab(34.6% 0.0413 -0.1552)
OKLCHoklch(34.6% 0.161 284.9)
XYZxyz(6.4374, 3.5411, 23.2613)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F87 #6F871F
analogous
#1F3B87 #371F87 #6B1F87
triadic
#371F87 #87371F #1F8737
tetradic
#371F87 #871F3B #6F871F #1F876B
square
#371F87 #871F3B #6F871F #1F876B
split-complementary
#371F87 #876B1F #3B871F
monochromatic
#0E0823 #231455 #371F87 #4B2AB9 #6B4BD6

Accessibility & contrast

On white

12.29
#371F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#371F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F87
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F87#FFFFFF#000000##FFFFFF
##371F871.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#0C3C51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #371f87;
/* rgb */ color: rgb(55, 31, 135);
/* oklch */ color: oklch(34.6% 0.161 284.9);
Tailwind
colors: {
  custom: {
    50: '#785eab',
    500: '#371f87',
    950: '#000000',
  },
}
SCSS
$custom: #371f87;
$custom-light: #785eab;
$custom-dark: #000000;
JSON
{
  "hex": "#371f87",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 253.846,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34598,
    "c": 0.16059,
    "h": 284.9
  },
  "luminance": 0.03541
}

Semantic roles & 50–950 ramp

primary
#371F87
secondary
#9FB84A
accent
#E642C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371F87

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

Preview Lab → · Contrast checker → · Palette generator →

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