#371D89#371D89

#371D89 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.165 H 284.8°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#371D89
RGBrgb(55, 29, 137)
HSLhsl(254, 65%, 33%)
HSVhsv(254, 79%, 54%)
CMYKcmyk(59.9%, 78.8%, 0%, 46.3%)
CIE-LABlab(21.93, 41.27, -55.40)
CIE-LCHlch(21.93, 69.08, 306.68°)
OKLaboklab(34.55% 0.0422 -0.1596)
OKLCHoklch(34.55% 0.165 284.8)
XYZxyz(6.5289, 3.4967, 23.9930)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D89 #6F891D
analogous
#1D3989 #371D89 #6D1D89
triadic
#371D89 #89371D #1D8937
tetradic
#371D89 #891D39 #6F891D #1D896D
square
#371D89 #891D39 #6F891D #1D896D
split-complementary
#371D89 #896D1D #39891D
monochromatic
#0E0824 #231256 #371D89 #4B28BC #6B48D8

Accessibility & contrast

On white

12.36
#371D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#371D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D89
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D89#FFFFFF#000000##FFFFFF
##371D891.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#083C52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #371d89;
/* rgb */ color: rgb(55, 29, 137);
/* oklch */ color: oklch(34.5% 0.165 284.8);
Tailwind
colors: {
  custom: {
    50: '#795dac',
    500: '#371d89',
    950: '#000000',
  },
}
SCSS
$custom: #371d89;
$custom-light: #795dac;
$custom-dark: #000000;
JSON
{
  "hex": "#371d89",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 254.444,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34548,
    "c": 0.1651,
    "h": 284.8
  },
  "luminance": 0.03497
}

Semantic roles & 50–950 ramp

primary
#371D89
secondary
#9FBA47
accent
#E840C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371D89

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

Preview Lab → · Contrast checker → · Palette generator →

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