#371F9B#371F9B

#371F9B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.185 H 281.1°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#371F9B
RGBrgb(55, 31, 155)
HSLhsl(252, 67%, 36%)
HSVhsv(252, 80%, 61%)
CMYKcmyk(64.5%, 80%, 0%, 39.2%)
CIE-LABlab(24.19, 45.72, -62.83)
CIE-LCHlch(24.19, 77.70, 306.04°)
OKLaboklab(36.69% 0.0356 -0.1813)
OKLCHoklch(36.69% 0.185 281.1)
XYZxyz(7.9801, 4.1581, 31.3861)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F9B #839B1F
analogous
#1F459B #371F9B #751F9B
triadic
#371F9B #9B371F #1F9B37
tetradic
#371F9B #9B1F45 #839B1F #1F9B75
square
#371F9B #9B1F45 #839B1F #1F9B75
split-complementary
#371F9B #9B751F #459B1F
monochromatic
#130B35 #251568 #371F9B #4929CE #7157DD

Accessibility & contrast

On white

11.46
#371F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#371F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F9B
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F9B#FFFFFF#000000##FFFFFF
##371F9B1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003599
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #371f9b;
/* rgb */ color: rgb(55, 31, 155);
/* oklch */ color: oklch(36.7% 0.185 281.1);
Tailwind
colors: {
  custom: {
    50: '#7c5fba',
    500: '#371f9b',
    950: '#000000',
  },
}
SCSS
$custom: #371f9b;
$custom-light: #7c5fba;
$custom-dark: #000000;
JSON
{
  "hex": "#371f9b",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 251.613,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36692,
    "c": 0.18475,
    "h": 281.1
  },
  "luminance": 0.04159
}

Semantic roles & 50–950 ramp

primary
#371F9B
secondary
#ACC155
accent
#EA3EC8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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