#371781#371781

#371781 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.161 H 287.6°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#371781
RGBrgb(55, 23, 129)
HSLhsl(258, 70%, 30%)
HSVhsv(258, 82%, 51%)
CMYKcmyk(57.4%, 82.2%, 0%, 49.4%)
CIE-LABlab(20.08, 41.81, -53.41)
CIE-LCHlch(20.08, 67.83, 308.05°)
OKLaboklab(33.01% 0.0489 -0.1537)
OKLCHoklch(33.01% 0.161 287.6)
XYZxyz(5.8432, 3.0097, 21.0377)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371781 #618117
analogous
#172C81 #371781 #6C1781
triadic
#371781 #813717 #178137
tetradic
#371781 #81172C #618117 #17816C
square
#371781 #81172C #618117 #17816C
split-complementary
#371781 #816C17 #2C8117
monochromatic
#0B051A #210E4D #371781 #4D20B5 #6937DB

Accessibility & contrast

On white

13.11
#371781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371781
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371781#FFFFFF#000000##FFFFFF
##3717811.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371781;
/* rgb */ color: rgb(55, 23, 129);
/* oklch */ color: oklch(33.0% 0.161 287.6);
Tailwind
colors: {
  custom: {
    50: '#7859a7',
    500: '#371781',
    950: '#000000',
  },
}
SCSS
$custom: #371781;
$custom-light: #7859a7;
$custom-dark: #000000;
JSON
{
  "hex": "#371781",
  "rgb": {
    "r": 55,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 258.113,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33007,
    "c": 0.16133,
    "h": 287.6
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#371781
secondary
#91B53E
accent
#ED3BB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371781

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

Preview Lab → · Contrast checker → · Palette generator →

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