#371D85#371D85

#371D85 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.160 H 285.7°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#371D85
RGBrgb(55, 29, 133)
HSLhsl(255, 64%, 32%)
HSVhsv(255, 78%, 52%)
CMYKcmyk(58.6%, 78.2%, 0%, 47.8%)
CIE-LABlab(21.52, 40.06, -53.57)
CIE-LCHlch(21.52, 66.89, 306.79°)
OKLaboklab(34.14% 0.0433 -0.1543)
OKLCHoklch(34.14% 0.16 285.7)
XYZxyz(6.2473, 3.3840, 22.5097)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D85 #6B851D
analogous
#1D3785 #371D85 #6B1D85
triadic
#371D85 #85371D #1D8537
tetradic
#371D85 #851D37 #6B851D #1D856B
square
#371D85 #851D37 #6B851D #1D856B
split-complementary
#371D85 #856B1D #37851D
monochromatic
#0D0721 #221253 #371D85 #4C28B7 #6A46D7

Accessibility & contrast

On white

12.52
#371D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#371D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D85
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D85#FFFFFF#000000##FFFFFF
##371D851.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#103B50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #371d85;
/* rgb */ color: rgb(55, 29, 133);
/* oklch */ color: oklch(34.1% 0.160 285.7);
Tailwind
colors: {
  custom: {
    50: '#785caa',
    500: '#371d85',
    950: '#000000',
  },
}
SCSS
$custom: #371d85;
$custom-light: #785caa;
$custom-dark: #000000;
JSON
{
  "hex": "#371d85",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 255,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34136,
    "c": 0.16023,
    "h": 285.7
  },
  "luminance": 0.03384
}

Semantic roles & 50–950 ramp

primary
#371D85
secondary
#9BB846
accent
#E741BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371D85

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

Preview Lab → · Contrast checker → · Palette generator →

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