#371B87#371B87

#371B87 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.165 H 285.6°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#371B87
RGBrgb(55, 27, 135)
HSLhsl(256, 67%, 32%)
HSVhsv(256, 80%, 53%)
CMYKcmyk(59.3%, 80%, 0%, 47.1%)
CIE-LABlab(21.38, 41.67, -55.06)
CIE-LCHlch(21.38, 69.05, 307.12°)
OKLaboklab(34.1% 0.0442 -0.1586)
OKLCHoklch(34.1% 0.165 285.6)
XYZxyz(6.3393, 3.3450, 23.2286)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B87 #6B871B
analogous
#1B3587 #371B87 #6D1B87
triadic
#371B87 #87371B #1B8737
tetradic
#371B87 #871B35 #6B871B #1B876D
square
#371B87 #871B35 #6B871B #1B876D
split-complementary
#371B87 #876D1B #35871B
monochromatic
#0D0721 #221154 #371B87 #4C25BA #6A43D9

Accessibility & contrast

On white

12.58
#371B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371B87
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B87#FFFFFF#000000##FFFFFF
##371B871.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#0C3A51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371b87;
/* rgb */ color: rgb(55, 27, 135);
/* oklch */ color: oklch(34.1% 0.165 285.6);
Tailwind
colors: {
  custom: {
    50: '#785bab',
    500: '#371b87',
    950: '#000000',
  },
}
SCSS
$custom: #371b87;
$custom-light: #785bab;
$custom-dark: #000000;
JSON
{
  "hex": "#371b87",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 255.556,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34097,
    "c": 0.16465,
    "h": 285.6
  },
  "luminance": 0.03345
}

Semantic roles & 50–950 ramp

primary
#371B87
secondary
#9BBA44
accent
#EA3EBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371B87

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

Preview Lab → · Contrast checker → · Palette generator →

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