#371B9F#371B9F

#371B9F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.193 H 280.9°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#371B9F
RGBrgb(55, 27, 159)
HSLhsl(253, 71%, 36%)
HSVhsv(253, 83%, 62%)
CMYKcmyk(65.4%, 83%, 0%, 37.6%)
CIE-LABlab(24.00, 48.75, -65.59)
CIE-LCHlch(24.00, 81.73, 306.62°)
OKLaboklab(36.69% 0.0364 -0.1893)
OKLCHoklch(36.69% 0.193 280.9)
XYZxyz(8.2235, 4.0987, 33.1519)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B9F #839F1B
analogous
#1B419F #371B9F #791B9F
triadic
#371B9F #9F371B #1B9F37
tetradic
#371B9F #9F1B41 #839F1B #1B9F79
square
#371B9F #9F1B41 #839F1B #1B9F79
split-complementary
#371B9F #9F791B #419F1B
monochromatic
#130936 #25126B #371B9F #4924D3 #7153E2

Accessibility & contrast

On white

11.54
#371B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#371B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B9F
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B9F#FFFFFF#000000##FFFFFF
##371B9F1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371b9f;
/* rgb */ color: rgb(55, 27, 159);
/* oklch */ color: oklch(36.7% 0.193 280.9);
Tailwind
colors: {
  custom: {
    50: '#7d5dbd',
    500: '#371b9f',
    950: '#000000',
  },
}
SCSS
$custom: #371b9f;
$custom-light: #7d5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#371b9f",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 252.727,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36689,
    "c": 0.19277,
    "h": 280.9
  },
  "luminance": 0.04099
}

Semantic roles & 50–950 ramp

primary
#371B9F
secondary
#ACC551
accent
#EE3AC8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #371B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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