#371581#371581

#371581 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.163 H 287.9°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#371581
RGBrgb(55, 21, 129)
HSLhsl(259, 72%, 29%)
HSVhsv(259, 84%, 51%)
CMYKcmyk(57.4%, 83.7%, 0%, 49.4%)
CIE-LABlab(19.77, 42.71, -53.92)
CIE-LCHlch(19.77, 68.78, 308.38°)
OKLaboklab(32.79% 0.0502 -0.1552)
OKLCHoklch(32.79% 0.163 287.9)
XYZxyz(5.8050, 2.9332, 21.0249)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371581 #5F8115
analogous
#152981 #371581 #6D1581
triadic
#371581 #813715 #158137
tetradic
#371581 #811529 #5F8115 #15816D
square
#371581 #811529 #5F8115 #15816D
split-complementary
#371581 #816D15 #298115
monochromatic
#0B041A #210C4C #371581 #4D1EB6 #6933DE

Accessibility & contrast

On white

13.23
#371581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#371581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371581
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371581#FFFFFF#000000##FFFFFF
##3715811.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#16364C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371581;
/* rgb */ color: rgb(55, 21, 129);
/* oklch */ color: oklch(32.8% 0.163 287.9);
Tailwind
colors: {
  custom: {
    50: '#7858a7',
    500: '#371581',
    950: '#000000',
  },
}
SCSS
$custom: #371581;
$custom-light: #7858a7;
$custom-dark: #000000;
JSON
{
  "hex": "#371581",
  "rgb": {
    "r": 55,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 258.889,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32794,
    "c": 0.16312,
    "h": 287.9
  },
  "luminance": 0.02934
}

Semantic roles & 50–950 ramp

primary
#371581
secondary
#8FB63C
accent
#EF39B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371581

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

Preview Lab → · Contrast checker → · Palette generator →

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