#371B92#371B92

#371B92 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.178 H 283.2°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#371B92
RGBrgb(55, 27, 146)
HSLhsl(254, 69%, 34%)
HSVhsv(254, 82%, 57%)
CMYKcmyk(62.3%, 81.5%, 0%, 42.7%)
CIE-LABlab(22.55, 44.94, -59.98)
CIE-LCHlch(22.55, 74.95, 306.84°)
OKLaboklab(35.27% 0.0407 -0.173)
OKLCHoklch(35.27% 0.178 283.2)
XYZxyz(7.1542, 3.6709, 27.5201)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B92 #76921B
analogous
#1B3B92 #371B92 #731B92
triadic
#371B92 #92371B #1B9237
tetradic
#371B92 #921B3B #76921B #1B9273
square
#371B92 #921B3B #76921B #1B9273
split-complementary
#371B92 #92731B #3B921B
monochromatic
#10082B #24115E #371B92 #4A25C6 #6D4ADE

Accessibility & contrast

On white

12.11
#371B92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#371B92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B92
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B92#FFFFFF#000000##FFFFFF
##371B921.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003995
Deuteranopia (green-blind)
#003290
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #371b92;
/* rgb */ color: rgb(55, 27, 146);
/* oklch */ color: oklch(35.3% 0.178 283.2);
Tailwind
colors: {
  custom: {
    50: '#7a5cb3',
    500: '#371b92',
    950: '#000000',
  },
}
SCSS
$custom: #371b92;
$custom-light: #7a5cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#371b92",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 146
  },
  "hsl": {
    "h": 254.118,
    "s": 68.786,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35266,
    "c": 0.17769,
    "h": 283.2
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#371B92
secondary
#A4BF49
accent
#EC3CC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371B92

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

Preview Lab → · Contrast checker → · Palette generator →

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