#371D9F#371D9F

#371D9F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.191 H 280.7°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#371D9F
RGBrgb(55, 29, 159)
HSLhsl(252, 69%, 37%)
HSVhsv(252, 82%, 62%)
CMYKcmyk(65.4%, 81.8%, 0%, 37.6%)
CIE-LABlab(24.30, 47.86, -65.09)
CIE-LCHlch(24.30, 80.79, 306.33°)
OKLaboklab(36.9% 0.0354 -0.1878)
OKLCHoklch(36.9% 0.191 280.7)
XYZxyz(8.2709, 4.1935, 33.1677)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D9F #859F1D
analogous
#1D449F #371D9F #781D9F
triadic
#371D9F #9F371D #1D9F37
tetradic
#371D9F #9F1D44 #859F1D #1D9F78
square
#371D9F #9F1D44 #859F1D #1D9F78
split-complementary
#371D9F #9F781D #449F1D
monochromatic
#130A37 #25146B #371D9F #4926D3 #7256E0

Accessibility & contrast

On white

11.42
#371D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#371D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D9F
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D9F#FFFFFF#000000##FFFFFF
##371D9F1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #371d9f;
/* rgb */ color: rgb(55, 29, 159);
/* oklch */ color: oklch(36.9% 0.191 280.7);
Tailwind
colors: {
  custom: {
    50: '#7d5ebd',
    500: '#371d9f',
    950: '#000000',
  },
}
SCSS
$custom: #371d9f;
$custom-light: #7d5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#371d9f",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 252,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.369,
    "c": 0.19116,
    "h": 280.7
  },
  "luminance": 0.04194
}

Semantic roles & 50–950 ramp

primary
#371D9F
secondary
#ADC454
accent
#EC3CC9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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