#371B9E#371B9E

#371B9E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.192 H 281.0°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#371B9E
RGBrgb(55, 27, 158)
HSLhsl(253, 71%, 36%)
HSVhsv(253, 83%, 62%)
CMYKcmyk(65.2%, 82.9%, 0%, 38%)
CIE-LABlab(23.88, 48.46, -65.17)
CIE-LCHlch(23.88, 81.21, 306.64°)
OKLaboklab(36.58% 0.0367 -0.1881)
OKLCHoklch(36.58% 0.192 281)
XYZxyz(8.1371, 4.0641, 32.6968)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B9E #829E1B
analogous
#1B419E #371B9E #791B9E
triadic
#371B9E #9E371B #1B9E37
tetradic
#371B9E #9E1B41 #829E1B #1B9E79
square
#371B9E #9E1B41 #829E1B #1B9E79
split-complementary
#371B9E #9E791B #419E1B
monochromatic
#130935 #25126A #371B9E #4924D2 #7152E1

Accessibility & contrast

On white

11.58
#371B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#371B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B9E
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B9E#FFFFFF#000000##FFFFFF
##371B9E1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #371b9e;
/* rgb */ color: rgb(55, 27, 158);
/* oklch */ color: oklch(36.6% 0.192 281.0);
Tailwind
colors: {
  custom: {
    50: '#7d5dbc',
    500: '#371b9e',
    950: '#000000',
  },
}
SCSS
$custom: #371b9e;
$custom-light: #7d5dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#371b9e",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 252.824,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36578,
    "c": 0.19162,
    "h": 281
  },
  "luminance": 0.04065
}

Semantic roles & 50–950 ramp

primary
#371B9E
secondary
#ABC451
accent
#EE3AC7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #371B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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