#371F85#371F85

#371F85 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.158 H 285.3°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#371F85
RGBrgb(55, 31, 133)
HSLhsl(254, 62%, 32%)
HSVhsv(254, 77%, 52%)
CMYKcmyk(58.6%, 76.7%, 0%, 47.8%)
CIE-LABlab(21.89, 39.00, -52.96)
CIE-LCHlch(21.89, 65.77, 306.37°)
OKLaboklab(34.4% 0.0418 -0.1525)
OKLCHoklch(34.4% 0.158 285.3)
XYZxyz(6.2979, 3.4853, 22.5266)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F85 #6D851F
analogous
#1F3A85 #371F85 #6A1F85
triadic
#371F85 #85371F #1F8537
tetradic
#371F85 #851F3A #6D851F #1F856A
square
#371F85 #851F3A #6D851F #1F856A
split-complementary
#371F85 #856A1F #3A851F
monochromatic
#0E0822 #221353 #371F85 #4C2BB7 #6A4AD5

Accessibility & contrast

On white

12.37
#371F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#371F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F85
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F85#FFFFFF#000000##FFFFFF
##371F851.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#103B50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #371f85;
/* rgb */ color: rgb(55, 31, 133);
/* oklch */ color: oklch(34.4% 0.158 285.3);
Tailwind
colors: {
  custom: {
    50: '#785eaa',
    500: '#371f85',
    950: '#000000',
  },
}
SCSS
$custom: #371f85;
$custom-light: #785eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#371f85",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 254.118,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34396,
    "c": 0.15812,
    "h": 285.3
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#371F85
secondary
#9DB749
accent
#E543BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371F85

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

Preview Lab → · Contrast checker → · Palette generator →

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