#371E8C#371E8C

#371E8C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.168 H 284.0°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#371E8C
RGBrgb(55, 30, 140)
HSLhsl(254, 65%, 33%)
HSVhsv(254, 79%, 55%)
CMYKcmyk(60.7%, 78.6%, 0%, 45.1%)
CIE-LABlab(22.42, 41.67, -56.47)
CIE-LCHlch(22.42, 70.18, 306.43°)
OKLaboklab(34.98% 0.0406 -0.1627)
OKLCHoklch(34.98% 0.168 284)
XYZxyz(6.7720, 3.6338, 25.1504)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E8C #738C1E
analogous
#1E3C8C #371E8C #6E1E8C
triadic
#371E8C #8C371E #1E8C37
tetradic
#371E8C #8C1E3C #738C1E #1E8C6E
square
#371E8C #8C1E3C #738C1E #1E8C6E
split-complementary
#371E8C #8C6E1E #3C8C1E
monochromatic
#0F0827 #23135A #371E8C #4B29BE #6C4CD9

Accessibility & contrast

On white

12.16
#371E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371E8C
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E8C#FFFFFF#000000##FFFFFF
##371E8C1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #371e8c;
/* rgb */ color: rgb(55, 30, 140);
/* oklch */ color: oklch(35.0% 0.168 284.0);
Tailwind
colors: {
  custom: {
    50: '#795daf',
    500: '#371e8c',
    950: '#000000',
  },
}
SCSS
$custom: #371e8c;
$custom-light: #795daf;
$custom-dark: #000000;
JSON
{
  "hex": "#371e8c",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 253.636,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34984,
    "c": 0.16774,
    "h": 284
  },
  "luminance": 0.03634
}

Semantic roles & 50–950 ramp

primary
#371E8C
secondary
#A2BB4B
accent
#E840C2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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