#371F96#371F96

#371F96 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.179 H 282.0°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#371F96
RGBrgb(55, 31, 150)
HSLhsl(252, 66%, 35%)
HSVhsv(252, 79%, 59%)
CMYKcmyk(63.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(23.65, 44.20, -60.64)
CIE-LCHlch(23.65, 75.04, 306.09°)
OKLaboklab(36.16% 0.037 -0.1749)
OKLCHoklch(36.16% 0.179 282)
XYZxyz(7.5688, 3.9937, 29.2203)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F96 #7E961F
analogous
#1F4296 #371F96 #721F96
triadic
#371F96 #96371F #1F9637
tetradic
#371F96 #961F42 #7E961F #1F9672
square
#371F96 #961F42 #7E961F #1F9672
split-complementary
#371F96 #96721F #42961F
monochromatic
#120A31 #241563 #371F96 #4A29C9 #6F54DC

Accessibility & contrast

On white

11.67
#371F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#371F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F96
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F96#FFFFFF#000000##FFFFFF
##371F961.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #371f96;
/* rgb */ color: rgb(55, 31, 150);
/* oklch */ color: oklch(36.2% 0.179 282.0);
Tailwind
colors: {
  custom: {
    50: '#7b5fb6',
    500: '#371f96',
    950: '#000000',
  },
}
SCSS
$custom: #371f96;
$custom-light: #7b5fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#371f96",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 252.101,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36158,
    "c": 0.17881,
    "h": 282
  },
  "luminance": 0.03994
}

Semantic roles & 50–950 ramp

primary
#371F96
secondary
#A9BF52
accent
#E93FC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #371F96

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

Preview Lab → · Contrast checker → · Palette generator →

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