#371E8B#371E8B

#371E8B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.167 H 284.2°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#371E8B
RGBrgb(55, 30, 139)
HSLhsl(254, 64%, 33%)
HSVhsv(254, 78%, 55%)
CMYKcmyk(60.4%, 78.4%, 0%, 45.5%)
CIE-LABlab(22.32, 41.37, -56.02)
CIE-LCHlch(22.32, 69.64, 306.45°)
OKLaboklab(34.88% 0.0409 -0.1614)
OKLCHoklch(34.88% 0.167 284.2)
XYZxyz(6.6986, 3.6044, 24.7638)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E8B #728B1E
analogous
#1E3C8B #371E8B #6D1E8B
triadic
#371E8B #8B371E #1E8B37
tetradic
#371E8B #8B1E3C #728B1E #1E8B6D
square
#371E8B #8B1E3C #728B1E #1E8B6D
split-complementary
#371E8B #8B6D1E #3C8B1E
monochromatic
#0F0826 #231359 #371E8B #4B29BD #6C4BD8

Accessibility & contrast

On white

12.20
#371E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#371E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E8B
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E8B#FFFFFF#000000##FFFFFF
##371E8B1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#033D54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #371e8b;
/* rgb */ color: rgb(55, 30, 139);
/* oklch */ color: oklch(34.9% 0.167 284.2);
Tailwind
colors: {
  custom: {
    50: '#795dae',
    500: '#371e8b',
    950: '#000000',
  },
}
SCSS
$custom: #371e8b;
$custom-light: #795dae;
$custom-dark: #000000;
JSON
{
  "hex": "#371e8b",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 253.761,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3488,
    "c": 0.16652,
    "h": 284.2
  },
  "luminance": 0.03605
}

Semantic roles & 50–950 ramp

primary
#371E8B
secondary
#A1BB4A
accent
#E740C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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