#371D8F#371D8F

#371D8F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.172 H 283.6°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#371D8F
RGBrgb(55, 29, 143)
HSLhsl(254, 66%, 34%)
HSVhsv(254, 80%, 56%)
CMYKcmyk(61.5%, 79.7%, 0%, 43.9%)
CIE-LABlab(22.56, 43.08, -58.11)
CIE-LCHlch(22.56, 72.33, 306.55°)
OKLaboklab(35.18% 0.0404 -0.1675)
OKLCHoklch(35.18% 0.172 283.6)
XYZxyz(6.9713, 3.6737, 26.3230)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D8F #758F1D
analogous
#1D3C8F #371D8F #701D8F
triadic
#371D8F #8F371D #1D8F37
tetradic
#371D8F #8F1D3C #758F1D #1D8F70
square
#371D8F #8F1D3C #758F1D #1D8F70
split-complementary
#371D8F #8F701D #3C8F1D
monochromatic
#100829 #23135C #371D8F #4B27C2 #6C4CDB

Accessibility & contrast

On white

12.11
#371D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371D8F
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D8F#FFFFFF#000000##FFFFFF
##371D8F1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #371d8f;
/* rgb */ color: rgb(55, 29, 143);
/* oklch */ color: oklch(35.2% 0.172 283.6);
Tailwind
colors: {
  custom: {
    50: '#7a5db1',
    500: '#371d8f',
    950: '#000000',
  },
}
SCSS
$custom: #371d8f;
$custom-light: #7a5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#371d8f",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 253.684,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35176,
    "c": 0.17231,
    "h": 283.6
  },
  "luminance": 0.03674
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #371D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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