#371C8E#371C8E

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

Color values

HEX#371C8E
RGBrgb(55, 28, 142)
HSLhsl(254, 67%, 33%)
HSVhsv(254, 80%, 56%)
CMYKcmyk(61.3%, 80.3%, 0%, 44.3%)
CIE-LABlab(22.29, 43.27, -57.94)
CIE-LCHlch(22.29, 72.31, 306.75°)
OKLaboklab(34.95% 0.0413 -0.167)
OKLCHoklch(34.95% 0.172 283.9)
XYZxyz(6.8718, 3.5953, 25.9178)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C8E #738E1C
analogous
#1C3A8E #371C8E #701C8E
triadic
#371C8E #8E371C #1C8E37
tetradic
#371C8E #8E1C3A #738E1C #1C8E70
square
#371C8E #8E1C3A #738E1C #1C8E70
split-complementary
#371C8E #8E701C #3A8E1C
monochromatic
#0F0828 #23125B #371C8E #4B26C1 #6C49DB

Accessibility & contrast

On white

12.21
#371C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371C8E
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C8E#FFFFFF#000000##FFFFFF
##371C8E1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #371c8e;
/* rgb */ color: rgb(55, 28, 142);
/* oklch */ color: oklch(35.0% 0.172 283.9);
Tailwind
colors: {
  custom: {
    50: '#7a5cb0',
    500: '#371c8e',
    950: '#000000',
  },
}
SCSS
$custom: #371c8e;
$custom-light: #7a5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#371c8e",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 254.211,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34952,
    "c": 0.17206,
    "h": 283.9
  },
  "luminance": 0.03596
}

Semantic roles & 50–950 ramp

primary
#371C8E
secondary
#A2BD49
accent
#EA3EC1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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