#371B95#371B95

#371B95 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.181 H 282.7°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#371B95
RGBrgb(55, 27, 149)
HSLhsl(254, 69%, 35%)
HSVhsv(254, 82%, 58%)
CMYKcmyk(63.1%, 81.9%, 0%, 41.6%)
CIE-LABlab(22.88, 45.82, -61.30)
CIE-LCHlch(22.88, 76.53, 306.78°)
OKLaboklab(35.59% 0.0397 -0.1768)
OKLCHoklch(35.59% 0.181 282.7)
XYZxyz(7.3906, 3.7655, 28.7653)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B95 #79951B
analogous
#1B3C95 #371B95 #741B95
triadic
#371B95 #95371B #1B9537
tetradic
#371B95 #951B3C #79951B #1B9574
square
#371B95 #951B3C #79951B #1B9574
split-complementary
#371B95 #95741B #3C951B
monochromatic
#11082D #241261 #371B95 #4A24C9 #6E4CDF

Accessibility & contrast

On white

11.98
#371B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#371B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B95
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B95#FFFFFF#000000##FFFFFF
##371B951.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #371b95;
/* rgb */ color: rgb(55, 27, 149);
/* oklch */ color: oklch(35.6% 0.181 282.7);
Tailwind
colors: {
  custom: {
    50: '#7b5cb5',
    500: '#371b95',
    950: '#000000',
  },
}
SCSS
$custom: #371b95;
$custom-light: #7b5cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#371b95",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 253.77,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35591,
    "c": 0.18119,
    "h": 282.7
  },
  "luminance": 0.03766
}

Semantic roles & 50–950 ramp

primary
#371B95
secondary
#A6C14B
accent
#EC3CC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #371B95

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

Preview Lab → · Contrast checker → · Palette generator →

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