#371885#371885

#371885 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.165 H 286.5°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#371885
RGBrgb(55, 24, 133)
HSLhsl(257, 69%, 31%)
HSVhsv(257, 82%, 52%)
CMYKcmyk(58.6%, 82%, 0%, 47.8%)
CIE-LABlab(20.67, 42.51, -54.97)
CIE-LCHlch(20.67, 69.49, 307.71°)
OKLaboklab(33.54% 0.0469 -0.1583)
OKLCHoklch(33.54% 0.165 286.5)
XYZxyz(6.1345, 3.1586, 22.4722)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371885 #668518
analogous
#182F85 #371885 #6D1885
triadic
#371885 #853718 #188537
tetradic
#371885 #85182F #668518 #18856D
square
#371885 #85182F #668518 #18856D
split-complementary
#371885 #856D18 #2F8518
monochromatic
#0C051D #220F51 #371885 #4C21B9 #693CDC

Accessibility & contrast

On white

12.87
#371885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#371885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371885
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371885#FFFFFF#000000##FFFFFF
##3718851.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371885;
/* rgb */ color: rgb(55, 24, 133);
/* oklch */ color: oklch(33.5% 0.165 286.5);
Tailwind
colors: {
  custom: {
    50: '#785aaa',
    500: '#371885',
    950: '#000000',
  },
}
SCSS
$custom: #371885;
$custom-light: #785aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#371885",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 257.064,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33541,
    "c": 0.1651,
    "h": 286.5
  },
  "luminance": 0.03159
}

Semantic roles & 50–950 ramp

primary
#371885
secondary
#96B940
accent
#EC3CBA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371885

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

Preview Lab → · Contrast checker → · Palette generator →

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