#371681#371681

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

Color values

HEX#371681
RGBrgb(55, 22, 129)
HSLhsl(259, 71%, 30%)
HSVhsv(259, 83%, 51%)
CMYKcmyk(57.4%, 82.9%, 0%, 49.4%)
CIE-LABlab(19.93, 42.26, -53.67)
CIE-LCHlch(19.93, 68.31, 308.22°)
OKLaboklab(32.9% 0.0496 -0.1545)
OKLCHoklch(32.9% 0.162 287.8)
XYZxyz(5.8237, 2.9707, 21.0312)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371681 #608116
analogous
#162A81 #371681 #6D1681
triadic
#371681 #813716 #168137
tetradic
#371681 #81162A #608116 #16816D
square
#371681 #81162A #608116 #16816D
split-complementary
#371681 #816D16 #2A8116
monochromatic
#0B041A #210D4D #371681 #4D1FB5 #6935DD

Accessibility & contrast

On white

13.17
#371681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371681
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371681#FFFFFF#000000##FFFFFF
##3716811.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.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: #371681;
/* rgb */ color: rgb(55, 22, 129);
/* oklch */ color: oklch(32.9% 0.162 287.8);
Tailwind
colors: {
  custom: {
    50: '#7859a7',
    500: '#371681',
    950: '#000000',
  },
}
SCSS
$custom: #371681;
$custom-light: #7859a7;
$custom-dark: #000000;
JSON
{
  "hex": "#371681",
  "rgb": {
    "r": 55,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 258.505,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32899,
    "c": 0.16224,
    "h": 287.8
  },
  "luminance": 0.02971
}

Semantic roles & 50–950 ramp

primary
#371681
secondary
#90B63D
accent
#EE3AB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371681

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

Preview Lab → · Contrast checker → · Palette generator →

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