#371B86#371B86

#371B86 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.163 H 285.8°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#371B86
RGBrgb(55, 27, 134)
HSLhsl(256, 66%, 32%)
HSVhsv(256, 80%, 53%)
CMYKcmyk(59%, 79.9%, 0%, 47.5%)
CIE-LABlab(21.27, 41.37, -54.61)
CIE-LCHlch(21.27, 68.51, 307.15°)
OKLaboklab(33.99% 0.0445 -0.1573)
OKLCHoklch(33.99% 0.163 285.8)
XYZxyz(6.2693, 3.3170, 22.8595)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B86 #6A861B
analogous
#1B3586 #371B86 #6D1B86
triadic
#371B86 #86371B #1B8637
tetradic
#371B86 #861B35 #6A861B #1B866D
square
#371B86 #861B35 #6A861B #1B866D
split-complementary
#371B86 #866D1B #35861B
monochromatic
#0D0620 #221153 #371B86 #4C25B9 #6A42D9

Accessibility & contrast

On white

12.62
#371B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#371B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B86
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B86#FFFFFF#000000##FFFFFF
##371B861.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#0E3A50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371b86;
/* rgb */ color: rgb(55, 27, 134);
/* oklch */ color: oklch(34.0% 0.163 285.8);
Tailwind
colors: {
  custom: {
    50: '#785baa',
    500: '#371b86',
    950: '#000000',
  },
}
SCSS
$custom: #371b86;
$custom-light: #785baa;
$custom-dark: #000000;
JSON
{
  "hex": "#371b86",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 255.701,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33992,
    "c": 0.16345,
    "h": 285.8
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#371B86
secondary
#9AB944
accent
#E93EBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371B86

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

Preview Lab → · Contrast checker → · Palette generator →

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