#371780#371780

#371780 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.160 H 287.9°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#371780
RGBrgb(55, 23, 128)
HSLhsl(258, 70%, 30%)
HSVhsv(258, 82%, 50%)
CMYKcmyk(57%, 82%, 0%, 49.8%)
CIE-LABlab(19.98, 41.52, -52.95)
CIE-LCHlch(19.98, 67.29, 308.10°)
OKLaboklab(32.9% 0.0492 -0.1524)
OKLCHoklch(32.9% 0.16 287.9)
XYZxyz(5.7771, 2.9832, 20.6893)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371780 #608017
analogous
#172B80 #371780 #6C1780
triadic
#371780 #803717 #178037
tetradic
#371780 #80172B #608017 #17806C
square
#371780 #80172B #608017 #17806C
split-complementary
#371780 #806C17 #2B8017
monochromatic
#0B051A #210E4C #371780 #4D20B4 #6936DB

Accessibility & contrast

On white

13.15
#371780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#371780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371780
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371780#FFFFFF#000000##FFFFFF
##3717801.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#17364C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371780;
/* rgb */ color: rgb(55, 23, 128);
/* oklch */ color: oklch(32.9% 0.160 287.9);
Tailwind
colors: {
  custom: {
    50: '#7759a6',
    500: '#371780',
    950: '#000000',
  },
}
SCSS
$custom: #371780;
$custom-light: #7759a6;
$custom-dark: #000000;
JSON
{
  "hex": "#371780",
  "rgb": {
    "r": 55,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 258.286,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32902,
    "c": 0.16016,
    "h": 287.9
  },
  "luminance": 0.02984
}

Semantic roles & 50–950 ramp

primary
#371780
secondary
#90B43E
accent
#EC3BB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #371780

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

Preview Lab → · Contrast checker → · Palette generator →

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