#371F91#371F91

#371F91 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.173 H 282.9°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#371F91
RGBrgb(55, 31, 145)
HSLhsl(253, 65%, 35%)
HSVhsv(253, 79%, 57%)
CMYKcmyk(62.1%, 78.6%, 0%, 43.1%)
CIE-LABlab(23.12, 42.69, -58.42)
CIE-LCHlch(23.12, 72.36, 306.15°)
OKLaboklab(35.63% 0.0385 -0.1685)
OKLCHoklch(35.63% 0.173 282.9)
XYZxyz(7.1748, 3.8360, 27.1449)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F91 #79911F
analogous
#1F4091 #371F91 #701F91
triadic
#371F91 #91371F #1F9137
tetradic
#371F91 #911F40 #79911F #1F9170
square
#371F91 #911F40 #79911F #1F9170
split-complementary
#371F91 #91701F #40911F
monochromatic
#11092C #24145F #371F91 #4A2AC3 #6E51DA

Accessibility & contrast

On white

11.88
#371F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#371F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F91
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F91#FFFFFF#000000##FFFFFF
##371F911.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00338F
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #371f91;
/* rgb */ color: rgb(55, 31, 145);
/* oklch */ color: oklch(35.6% 0.173 282.9);
Tailwind
colors: {
  custom: {
    50: '#7a5eb2',
    500: '#371f91',
    950: '#000000',
  },
}
SCSS
$custom: #371f91;
$custom-light: #7a5eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#371f91",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 252.632,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35631,
    "c": 0.1728,
    "h": 282.9
  },
  "luminance": 0.03837
}

Semantic roles & 50–950 ramp

primary
#371F91
secondary
#A6BD4F
accent
#E840C4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #371F91

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

Preview Lab → · Contrast checker → · Palette generator →

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