#371F95#371F95

#371F95 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.178 H 282.1°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#371F95
RGBrgb(55, 31, 149)
HSLhsl(252, 66%, 35%)
HSVhsv(252, 79%, 58%)
CMYKcmyk(63.1%, 79.2%, 0%, 41.6%)
CIE-LABlab(23.54, 43.90, -60.20)
CIE-LCHlch(23.54, 74.51, 306.10°)
OKLaboklab(36.05% 0.0373 -0.1736)
OKLCHoklch(36.05% 0.178 282.1)
XYZxyz(7.4887, 3.9616, 28.7980)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F95 #7D951F
analogous
#1F4295 #371F95 #721F95
triadic
#371F95 #95371F #1F9537
tetradic
#371F95 #951F42 #7D951F #1F9572
square
#371F95 #951F42 #7D951F #1F9572
split-complementary
#371F95 #95721F #42951F
monochromatic
#120A30 #241462 #371F95 #4A2AC8 #6F53DB

Accessibility & contrast

On white

11.72
#371F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#371F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F95
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F95#FFFFFF#000000##FFFFFF
##371F951.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #371f95;
/* rgb */ color: rgb(55, 31, 149);
/* oklch */ color: oklch(36.1% 0.178 282.1);
Tailwind
colors: {
  custom: {
    50: '#7b5eb5',
    500: '#371f95',
    950: '#000000',
  },
}
SCSS
$custom: #371f95;
$custom-light: #7b5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#371f95",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 252.203,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36052,
    "c": 0.17762,
    "h": 282.1
  },
  "luminance": 0.03962
}

Semantic roles & 50–950 ramp

primary
#371F95
secondary
#A8BF51
accent
#E93FC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #371F95

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

Preview Lab → · Contrast checker → · Palette generator →

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