#371E8A#371E8A

#371E8A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.165 H 284.4°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#371E8A
RGBrgb(55, 30, 138)
HSLhsl(254, 64%, 33%)
HSVhsv(254, 78%, 54%)
CMYKcmyk(60.1%, 78.3%, 0%, 45.9%)
CIE-LABlab(22.21, 41.06, -55.56)
CIE-LCHlch(22.21, 69.09, 306.47°)
OKLaboklab(34.78% 0.0412 -0.1601)
OKLCHoklch(34.78% 0.165 284.4)
XYZxyz(6.6259, 3.5753, 24.3808)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E8A #718A1E
analogous
#1E3B8A #371E8A #6D1E8A
triadic
#371E8A #8A371E #1E8A37
tetradic
#371E8A #8A1E3B #718A1E #1E8A6D
square
#371E8A #8A1E3B #718A1E #1E8A6D
split-complementary
#371E8A #8A6D1E #3B8A1E
monochromatic
#0F0825 #231358 #371E8A #4B29BC #6B4BD8

Accessibility & contrast

On white

12.24
#371E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371E8A
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E8A#FFFFFF#000000##FFFFFF
##371E8A1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#053D53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #371e8a;
/* rgb */ color: rgb(55, 30, 138);
/* oklch */ color: oklch(34.8% 0.165 284.4);
Tailwind
colors: {
  custom: {
    50: '#795dad',
    500: '#371e8a',
    950: '#000000',
  },
}
SCSS
$custom: #371e8a;
$custom-light: #795dad;
$custom-dark: #000000;
JSON
{
  "hex": "#371e8a",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 253.889,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34777,
    "c": 0.1653,
    "h": 284.4
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#371E8A
secondary
#A0BA4A
accent
#E741C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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