#371E85#371E85

#371E85 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.159 H 285.5°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#371E85
RGBrgb(55, 30, 133)
HSLhsl(255, 63%, 32%)
HSVhsv(255, 77%, 52%)
CMYKcmyk(58.6%, 77.4%, 0%, 47.8%)
CIE-LABlab(21.70, 39.54, -53.27)
CIE-LCHlch(21.70, 66.34, 306.58°)
OKLaboklab(34.26% 0.0426 -0.1534)
OKLCHoklch(34.26% 0.159 285.5)
XYZxyz(6.2722, 3.4339, 22.5180)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E85 #6C851E
analogous
#1E3985 #371E85 #6B1E85
triadic
#371E85 #85371E #1E8537
tetradic
#371E85 #851E39 #6C851E #1E856B
square
#371E85 #851E39 #6C851E #1E856B
split-complementary
#371E85 #856B1E #39851E
monochromatic
#0E0721 #221353 #371E85 #4C29B7 #6A48D6

Accessibility & contrast

On white

12.45
#371E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#371E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E85
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E85#FFFFFF#000000##FFFFFF
##371E851.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.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: #371e85;
/* rgb */ color: rgb(55, 30, 133);
/* oklch */ color: oklch(34.3% 0.159 285.5);
Tailwind
colors: {
  custom: {
    50: '#785daa',
    500: '#371e85',
    950: '#000000',
  },
}
SCSS
$custom: #371e85;
$custom-light: #785daa;
$custom-dark: #000000;
JSON
{
  "hex": "#371e85",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 133
  },
  "hsl": {
    "h": 254.563,
    "s": 63.19,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34264,
    "c": 0.15919,
    "h": 285.5
  },
  "luminance": 0.03434
}

Semantic roles & 50–950 ramp

primary
#371E85
secondary
#9CB847
accent
#E642BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371E85

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

Preview Lab → · Contrast checker → · Palette generator →

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