#371D97#371D97

#371D97 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.182 H 282.0°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#371D97
RGBrgb(55, 29, 151)
HSLhsl(253, 68%, 35%)
HSVhsv(253, 81%, 59%)
CMYKcmyk(63.6%, 80.8%, 0%, 40.8%)
CIE-LABlab(23.42, 45.48, -61.64)
CIE-LCHlch(23.42, 76.60, 306.42°)
OKLaboklab(36.03% 0.0379 -0.1778)
OKLCHoklch(36.03% 0.182 282)
XYZxyz(7.5991, 3.9248, 29.6293)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D97 #7D971D
analogous
#1D4097 #371D97 #741D97
triadic
#371D97 #97371D #1D9737
tetradic
#371D97 #971D40 #7D971D #1D9774
square
#371D97 #971D40 #7D971D #1D9774
split-complementary
#371D97 #97741D #40971D
monochromatic
#120930 #241364 #371D97 #4A27CA #6F51DE

Accessibility & contrast

On white

11.76
#371D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#371D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D97
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D97#FFFFFF#000000##FFFFFF
##371D971.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #371d97;
/* rgb */ color: rgb(55, 29, 151);
/* oklch */ color: oklch(36.0% 0.182 282.0);
Tailwind
colors: {
  custom: {
    50: '#7b5eb7',
    500: '#371d97',
    950: '#000000',
  },
}
SCSS
$custom: #371d97;
$custom-light: #7b5eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#371d97",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 252.787,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3603,
    "c": 0.18181,
    "h": 282
  },
  "luminance": 0.03925
}

Semantic roles & 50–950 ramp

primary
#371D97
secondary
#A8C04F
accent
#EB3DC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #371D97

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

Preview Lab → · Contrast checker → · Palette generator →

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