#371E82#371E82

#371E82 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.155 H 286.2°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#371E82
RGBrgb(55, 30, 130)
HSLhsl(255, 63%, 31%)
HSVhsv(255, 77%, 51%)
CMYKcmyk(57.7%, 76.9%, 0%, 49%)
CIE-LABlab(21.40, 38.62, -51.87)
CIE-LCHlch(21.40, 64.67, 306.67°)
OKLaboklab(33.96% 0.0434 -0.1493)
OKLCHoklch(33.96% 0.155 286.2)
XYZxyz(6.0679, 3.3521, 21.4421)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E82 #69821E
analogous
#1E3782 #371E82 #691E82
triadic
#371E82 #82371E #1E8237
tetradic
#371E82 #821E37 #69821E #1E8269
square
#371E82 #821E37 #69821E #1E8269
split-complementary
#371E82 #82691E #37821E
monochromatic
#0D071F #221350 #371E82 #4C29B4 #6A46D4

Accessibility & contrast

On white

12.57
#371E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#371E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E82
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E82#FFFFFF#000000##FFFFFF
##371E821.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#143A4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371e82;
/* rgb */ color: rgb(55, 30, 130);
/* oklch */ color: oklch(34.0% 0.155 286.2);
Tailwind
colors: {
  custom: {
    50: '#775da7',
    500: '#371e82',
    950: '#000000',
  },
}
SCSS
$custom: #371e82;
$custom-light: #775da7;
$custom-dark: #000000;
JSON
{
  "hex": "#371e82",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 255,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33961,
    "c": 0.15549,
    "h": 286.2
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

primary
#371E82
secondary
#99B547
accent
#E642BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371E82

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

Preview Lab → · Contrast checker → · Palette generator →

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