#371B81#371B81

#371B81 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.157 H 287.0°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#371B81
RGBrgb(55, 27, 129)
HSLhsl(256, 65%, 31%)
HSVhsv(256, 79%, 51%)
CMYKcmyk(57.4%, 79.1%, 0%, 49.4%)
CIE-LABlab(20.75, 39.87, -52.31)
CIE-LCHlch(20.75, 65.77, 307.32°)
OKLaboklab(33.48% 0.046 -0.1505)
OKLCHoklch(33.48% 0.157 287)
XYZxyz(5.9287, 3.1807, 21.0662)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B81 #65811B
analogous
#1B3281 #371B81 #6A1B81
triadic
#371B81 #81371B #1B8137
tetradic
#371B81 #811B32 #65811B #1B816A
square
#371B81 #811B32 #65811B #1B816A
split-complementary
#371B81 #816A1B #32811B
monochromatic
#0C061C #21104E #371B81 #4D26B4 #693FD7

Accessibility & contrast

On white

12.83
#371B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#371B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B81
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B81#FFFFFF#000000##FFFFFF
##371B811.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#16384D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371b81;
/* rgb */ color: rgb(55, 27, 129);
/* oklch */ color: oklch(33.5% 0.157 287.0);
Tailwind
colors: {
  custom: {
    50: '#775ba7',
    500: '#371b81',
    950: '#000000',
  },
}
SCSS
$custom: #371b81;
$custom-light: #775ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#371b81",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 256.471,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33475,
    "c": 0.15742,
    "h": 287
  },
  "luminance": 0.03181
}

Semantic roles & 50–950 ramp

primary
#371B81
secondary
#95B543
accent
#E83FBA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #371B81

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

Preview Lab → · Contrast checker → · Palette generator →

#371B81 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva