#371A79#371A79

#371A79 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.149 H 289.3°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#371A79
RGBrgb(55, 26, 121)
HSLhsl(258, 65%, 29%)
HSVhsv(258, 79%, 47%)
CMYKcmyk(54.5%, 78.5%, 0%, 52.5%)
CIE-LABlab(19.77, 37.99, -48.84)
CIE-LCHlch(19.77, 61.88, 307.88°)
OKLaboklab(32.54% 0.0492 -0.1404)
OKLCHoklch(32.54% 0.149 289.3)
XYZxyz(5.3951, 2.9312, 18.3670)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A79 #5C791A
analogous
#1A2D79 #371A79 #671A79
triadic
#371A79 #79371A #1A7937
tetradic
#371A79 #791A2D #5C791A #1A7967
square
#371A79 #791A2D #5C791A #1A7967
split-complementary
#371A79 #79671A #2D791A
monochromatic
#0B0519 #200F47 #371A79 #4E25AB #6839D4

Accessibility & contrast

On white

13.24
#371A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#371A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A79
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A79#FFFFFF#000000##FFFFFF
##371A791.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#1E3448
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371a79;
/* rgb */ color: rgb(55, 26, 121);
/* oklch */ color: oklch(32.5% 0.149 289.3);
Tailwind
colors: {
  custom: {
    50: '#765aa1',
    500: '#371a79',
    950: '#000000',
  },
}
SCSS
$custom: #371a79;
$custom-light: #765aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#371a79",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 258.316,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32538,
    "c": 0.14875,
    "h": 289.3
  },
  "luminance": 0.02931
}

Semantic roles & 50–950 ramp

primary
#371A79
secondary
#8CAD41
accent
#E840B5
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371A79

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

Preview Lab → · Contrast checker → · Palette generator →

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