#371B96#371B96

#371B96 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.182 H 282.5°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#371B96
RGBrgb(55, 27, 150)
HSLhsl(254, 69%, 35%)
HSVhsv(254, 82%, 59%)
CMYKcmyk(63.3%, 82%, 0%, 41.2%)
CIE-LABlab(22.99, 46.12, -61.73)
CIE-LCHlch(22.99, 77.06, 306.76°)
OKLaboklab(35.7% 0.0394 -0.1781)
OKLCHoklch(35.7% 0.182 282.5)
XYZxyz(7.4708, 3.7976, 29.1876)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B96 #7A961B
analogous
#1B3C96 #371B96 #751B96
triadic
#371B96 #96371B #1B9637
tetradic
#371B96 #961B3C #7A961B #1B9675
square
#371B96 #961B3C #7A961B #1B9675
split-complementary
#371B96 #96751B #3C961B
monochromatic
#11082E #241262 #371B96 #4A24CA #6E4DDF

Accessibility & contrast

On white

11.93
#371B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#371B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B96
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B96#FFFFFF#000000##FFFFFF
##371B961.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #371b96;
/* rgb */ color: rgb(55, 27, 150);
/* oklch */ color: oklch(35.7% 0.182 282.5);
Tailwind
colors: {
  custom: {
    50: '#7b5cb6',
    500: '#371b96',
    950: '#000000',
  },
}
SCSS
$custom: #371b96;
$custom-light: #7b5cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#371b96",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 253.659,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35699,
    "c": 0.18236,
    "h": 282.5
  },
  "luminance": 0.03798
}

Semantic roles & 50–950 ramp

primary
#371B96
secondary
#A6C14C
accent
#EC3BC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #371B96

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

Preview Lab → · Contrast checker → · Palette generator →

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