#371B82#371B82

#371B82 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.159 H 286.7°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#371B82
RGBrgb(55, 27, 130)
HSLhsl(256, 66%, 31%)
HSVhsv(256, 79%, 51%)
CMYKcmyk(57.7%, 79.2%, 0%, 49%)
CIE-LABlab(20.86, 40.17, -52.77)
CIE-LCHlch(20.86, 66.32, 307.28°)
OKLaboklab(33.58% 0.0457 -0.1519)
OKLCHoklch(33.58% 0.159 286.7)
XYZxyz(5.9955, 3.2075, 21.4179)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B82 #66821B
analogous
#1B3282 #371B82 #6A1B82
triadic
#371B82 #82371B #1B8237
tetradic
#371B82 #821B32 #66821B #1B826A
square
#371B82 #821B32 #66821B #1B826A
split-complementary
#371B82 #826A1B #32821B
monochromatic
#0C061D #22104F #371B82 #4C26B5 #6940D7

Accessibility & contrast

On white

12.79
#371B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371B82
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B82#FFFFFF#000000##FFFFFF
##371B821.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002F80
Tritanopia (blue-blind)
#14384E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371b82;
/* rgb */ color: rgb(55, 27, 130);
/* oklch */ color: oklch(33.6% 0.159 286.7);
Tailwind
colors: {
  custom: {
    50: '#775ba7',
    500: '#371b82',
    950: '#000000',
  },
}
SCSS
$custom: #371b82;
$custom-light: #775ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#371b82",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 256.311,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33578,
    "c": 0.15864,
    "h": 286.7
  },
  "luminance": 0.03208
}

Semantic roles & 50–950 ramp

primary
#371B82
secondary
#96B643
accent
#E93FBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371B82

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

Preview Lab → · Contrast checker → · Palette generator →

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