#371881#371881

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

Color values

HEX#371881
RGBrgb(55, 24, 129)
HSLhsl(258, 69%, 30%)
HSVhsv(258, 81%, 51%)
CMYKcmyk(57.4%, 81.4%, 0%, 49.4%)
CIE-LABlab(20.24, 41.34, -53.15)
CIE-LCHlch(20.24, 67.33, 307.88°)
OKLaboklab(33.12% 0.0482 -0.153)
OKLCHoklch(33.12% 0.16 287.5)
XYZxyz(5.8635, 3.0502, 21.0444)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371881 #628118
analogous
#182E81 #371881 #6B1881
triadic
#371881 #813718 #188137
tetradic
#371881 #81182E #628118 #18816B
square
#371881 #81182E #628118 #18816B
split-complementary
#371881 #816B18 #2E8118
monochromatic
#0B051A #210E4D #371881 #4D22B5 #6939DA

Accessibility & contrast

On white

13.04
#371881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#371881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371881
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371881#FFFFFF#000000##FFFFFF
##3718811.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371881;
/* rgb */ color: rgb(55, 24, 129);
/* oklch */ color: oklch(33.1% 0.160 287.5);
Tailwind
colors: {
  custom: {
    50: '#7759a7',
    500: '#371881',
    950: '#000000',
  },
}
SCSS
$custom: #371881;
$custom-light: #7759a7;
$custom-dark: #000000;
JSON
{
  "hex": "#371881",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 257.714,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.33119,
    "c": 0.16039,
    "h": 287.5
  },
  "luminance": 0.0305
}

Semantic roles & 50–950 ramp

primary
#371881
secondary
#92B540
accent
#EB3CB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371881

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

Preview Lab → · Contrast checker → · Palette generator →

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