#371E88#371E88

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

Color values

HEX#371E88
RGBrgb(55, 30, 136)
HSLhsl(254, 64%, 33%)
HSVhsv(254, 78%, 53%)
CMYKcmyk(59.6%, 77.9%, 0%, 46.7%)
CIE-LABlab(22.01, 40.45, -54.65)
CIE-LCHlch(22.01, 67.99, 306.51°)
OKLaboklab(34.57% 0.0417 -0.1574)
OKLCHoklch(34.57% 0.163 284.8)
XYZxyz(6.4824, 3.5179, 23.6252)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E88 #6F881E
analogous
#1E3A88 #371E88 #6C1E88
triadic
#371E88 #88371E #1E8837
tetradic
#371E88 #881E3A #6F881E #1E886C
square
#371E88 #881E3A #6F881E #1E886C
split-complementary
#371E88 #886C1E #3A881E
monochromatic
#0E0824 #231356 #371E88 #4B29BA #6B49D7

Accessibility & contrast

On white

12.33
#371E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371E88
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E88#FFFFFF#000000##FFFFFF
##371E881.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#0A3C52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #371e88;
/* rgb */ color: rgb(55, 30, 136);
/* oklch */ color: oklch(34.6% 0.163 284.8);
Tailwind
colors: {
  custom: {
    50: '#785dac',
    500: '#371e88',
    950: '#000000',
  },
}
SCSS
$custom: #371e88;
$custom-light: #785dac;
$custom-dark: #000000;
JSON
{
  "hex": "#371e88",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 136
  },
  "hsl": {
    "h": 254.151,
    "s": 63.855,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34571,
    "c": 0.16287,
    "h": 284.8
  },
  "luminance": 0.03518
}

Semantic roles & 50–950 ramp

primary
#371E88
secondary
#9FB949
accent
#E741C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371E88

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

Preview Lab → · Contrast checker → · Palette generator →

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