#371788#371788

#371788 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.169 H 285.9°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#371788
RGBrgb(55, 23, 136)
HSLhsl(257, 71%, 31%)
HSVhsv(257, 83%, 53%)
CMYKcmyk(59.6%, 83.1%, 0%, 46.7%)
CIE-LABlab(20.84, 43.84, -56.58)
CIE-LCHlch(20.84, 71.58, 307.77°)
OKLaboklab(33.75% 0.0465 -0.163)
OKLCHoklch(33.75% 0.169 285.9)
XYZxyz(6.3245, 3.2022, 23.5726)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371788 #688817
analogous
#172F88 #371788 #6F1788
triadic
#371788 #883717 #178837
tetradic
#371788 #88172F #688817 #17886F
square
#371788 #88172F #688817 #17886F
split-complementary
#371788 #886F17 #2F8817
monochromatic
#0D051F #220E54 #371788 #4C20BC #693BDE

Accessibility & contrast

On white

12.80
#371788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#371788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371788
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371788#FFFFFF#000000##FFFFFF
##3717881.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#0B3950
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371788;
/* rgb */ color: rgb(55, 23, 136);
/* oklch */ color: oklch(33.8% 0.169 285.9);
Tailwind
colors: {
  custom: {
    50: '#7959ac',
    500: '#371788',
    950: '#000000',
  },
}
SCSS
$custom: #371788;
$custom-light: #7959ac;
$custom-dark: #000000;
JSON
{
  "hex": "#371788",
  "rgb": {
    "r": 55,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 256.991,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33754,
    "c": 0.16949,
    "h": 285.9
  },
  "luminance": 0.03203
}

Semantic roles & 50–950 ramp

primary
#371788
secondary
#98BC3F
accent
#EE3ABB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371788

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

Preview Lab → · Contrast checker → · Palette generator →

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