#371D8E#371D8E

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

Color values

HEX#371D8E
RGBrgb(55, 29, 142)
HSLhsl(254, 66%, 34%)
HSVhsv(254, 80%, 56%)
CMYKcmyk(61.3%, 79.6%, 0%, 44.3%)
CIE-LABlab(22.46, 42.78, -57.66)
CIE-LCHlch(22.46, 71.80, 306.57°)
OKLaboklab(35.07% 0.0407 -0.1662)
OKLCHoklch(35.07% 0.171 283.8)
XYZxyz(6.8959, 3.6435, 25.9258)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D8E #748E1D
analogous
#1D3B8E #371D8E #6F1D8E
triadic
#371D8E #8E371D #1D8E37
tetradic
#371D8E #8E1D3B #748E1D #1D8E6F
square
#371D8E #8E1D3B #748E1D #1D8E6F
split-complementary
#371D8E #8E6F1D #3B8E1D
monochromatic
#100828 #23135B #371D8E #4B27C1 #6C4BDA

Accessibility & contrast

On white

12.15
#371D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371D8E
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D8E#FFFFFF#000000##FFFFFF
##371D8E1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371d8e;
/* rgb */ color: rgb(55, 29, 142);
/* oklch */ color: oklch(35.1% 0.171 283.8);
Tailwind
colors: {
  custom: {
    50: '#795db0',
    500: '#371d8e',
    950: '#000000',
  },
}
SCSS
$custom: #371d8e;
$custom-light: #795db0;
$custom-dark: #000000;
JSON
{
  "hex": "#371d8e",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 253.805,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35071,
    "c": 0.17112,
    "h": 283.8
  },
  "luminance": 0.03644
}

Semantic roles & 50–950 ramp

primary
#371D8E
secondary
#A2BD4A
accent
#E93FC2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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