#371E95#371E95

#371E95 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.179 H 282.3°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#371E95
RGBrgb(55, 30, 149)
HSLhsl(253, 66%, 35%)
HSVhsv(253, 80%, 58%)
CMYKcmyk(63.1%, 79.9%, 0%, 41.6%)
CIE-LABlab(23.37, 44.40, -60.48)
CIE-LCHlch(23.37, 75.03, 306.28°)
OKLaboklab(35.93% 0.038 -0.1745)
OKLCHoklch(35.93% 0.179 282.3)
XYZxyz(7.4629, 3.9102, 28.7894)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E95 #7C951E
analogous
#1E4195 #371E95 #721E95
triadic
#371E95 #95371E #1E9537
tetradic
#371E95 #951E41 #7C951E #1E9572
square
#371E95 #951E41 #7C951E #1E9572
split-complementary
#371E95 #95721E #41951E
monochromatic
#11092F #241462 #371E95 #4A28C8 #6E51DC

Accessibility & contrast

On white

11.78
#371E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#371E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E95
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E95#FFFFFF#000000##FFFFFF
##371E951.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #371e95;
/* rgb */ color: rgb(55, 30, 149);
/* oklch */ color: oklch(35.9% 0.179 282.3);
Tailwind
colors: {
  custom: {
    50: '#7b5eb5',
    500: '#371e95',
    950: '#000000',
  },
}
SCSS
$custom: #371e95;
$custom-light: #7b5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#371e95",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 252.605,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35932,
    "c": 0.17854,
    "h": 282.3
  },
  "luminance": 0.03911
}

Semantic roles & 50–950 ramp

primary
#371E95
secondary
#A8BF50
accent
#E93EC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #371E95

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

Preview Lab → · Contrast checker → · Palette generator →

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