#371785#371785

#371785 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.166 H 286.6°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#371785
RGBrgb(55, 23, 133)
HSLhsl(257, 71%, 31%)
HSVhsv(257, 83%, 52%)
CMYKcmyk(58.6%, 82.7%, 0%, 47.8%)
CIE-LABlab(20.51, 42.97, -55.23)
CIE-LCHlch(20.51, 69.98, 307.88°)
OKLaboklab(33.43% 0.0475 -0.159)
OKLCHoklch(33.43% 0.166 286.6)
XYZxyz(6.1143, 3.1181, 22.4654)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371785 #658517
analogous
#172E85 #371785 #6E1785
triadic
#371785 #853717 #178537
tetradic
#371785 #85172E #658517 #17856E
square
#371785 #85172E #658517 #17856E
split-complementary
#371785 #856E17 #2E8517
monochromatic
#0C051D #210E51 #371785 #4D20B9 #693ADD

Accessibility & contrast

On white

12.93
#371785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#371785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371785
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371785#FFFFFF#000000##FFFFFF
##3717851.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#10384F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371785;
/* rgb */ color: rgb(55, 23, 133);
/* oklch */ color: oklch(33.4% 0.166 286.6);
Tailwind
colors: {
  custom: {
    50: '#7859aa',
    500: '#371785',
    950: '#000000',
  },
}
SCSS
$custom: #371785;
$custom-light: #7859aa;
$custom-dark: #000000;
JSON
{
  "hex": "#371785",
  "rgb": {
    "r": 55,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 257.455,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33432,
    "c": 0.166,
    "h": 286.6
  },
  "luminance": 0.03118
}

Semantic roles & 50–950 ramp

primary
#371785
secondary
#95B93F
accent
#ED3BB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371785

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

Preview Lab → · Contrast checker → · Palette generator →

#371785 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva