#371A85#371A85

#371A85 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.163 H 286.2°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#371A85
RGBrgb(55, 26, 133)
HSLhsl(256, 67%, 31%)
HSVhsv(256, 80%, 52%)
CMYKcmyk(58.6%, 80.5%, 0%, 47.8%)
CIE-LABlab(21.00, 41.56, -54.43)
CIE-LCHlch(21.00, 68.48, 307.36°)
OKLaboklab(33.77% 0.0455 -0.1567)
OKLCHoklch(33.77% 0.163 286.2)
XYZxyz(6.1773, 3.2441, 22.4864)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A85 #68851A
analogous
#1A3285 #371A85 #6C1A85
triadic
#371A85 #85371A #1A8537
tetradic
#371A85 #851A32 #68851A #1A856C
square
#371A85 #851A32 #68851A #1A856C
split-complementary
#371A85 #856C1A #32851A
monochromatic
#0D061F #221052 #371A85 #4C24B8 #6940DA

Accessibility & contrast

On white

12.74
#371A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#371A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A85
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A85#FFFFFF#000000##FFFFFF
##371A851.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#10394F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371a85;
/* rgb */ color: rgb(55, 26, 133);
/* oklch */ color: oklch(33.8% 0.163 286.2);
Tailwind
colors: {
  custom: {
    50: '#785baa',
    500: '#371a85',
    950: '#000000',
  },
}
SCSS
$custom: #371a85;
$custom-light: #785baa;
$custom-dark: #000000;
JSON
{
  "hex": "#371a85",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 256.262,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33769,
    "c": 0.16322,
    "h": 286.2
  },
  "luminance": 0.03244
}

Semantic roles & 50–950 ramp

primary
#371A85
secondary
#98B842
accent
#EA3EBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371A85

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

Preview Lab → · Contrast checker → · Palette generator →

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