#371E8D#371E8D

#371E8D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.169 H 283.8°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#371E8D
RGBrgb(55, 30, 141)
HSLhsl(254, 65%, 34%)
HSVhsv(254, 79%, 55%)
CMYKcmyk(61%, 78.7%, 0%, 44.7%)
CIE-LABlab(22.53, 41.98, -56.92)
CIE-LCHlch(22.53, 70.72, 306.41°)
OKLaboklab(35.09% 0.0403 -0.1641)
OKLCHoklch(35.09% 0.169 283.8)
XYZxyz(6.8461, 3.6634, 25.5405)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E8D #748D1E
analogous
#1E3C8D #371E8D #6E1E8D
triadic
#371E8D #8D371E #1E8D37
tetradic
#371E8D #8D1E3C #748D1E #1E8D6E
square
#371E8D #8D1E3C #748D1E #1E8D6E
split-complementary
#371E8D #8D6E1E #3C8D1E
monochromatic
#100928 #23135B #371E8D #4B29BF #6C4CD9

Accessibility & contrast

On white

12.12
#371E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#371E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E8D
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E8D#FFFFFF#000000##FFFFFF
##371E8D1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #371e8d;
/* rgb */ color: rgb(55, 30, 141);
/* oklch */ color: oklch(35.1% 0.169 283.8);
Tailwind
colors: {
  custom: {
    50: '#795daf',
    500: '#371e8d',
    950: '#000000',
  },
}
SCSS
$custom: #371e8d;
$custom-light: #795daf;
$custom-dark: #000000;
JSON
{
  "hex": "#371e8d",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 253.514,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35088,
    "c": 0.16894,
    "h": 283.8
  },
  "luminance": 0.03664
}

Semantic roles & 50–950 ramp

primary
#371E8D
secondary
#A2BC4B
accent
#E840C2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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