#371D79#371D79

#371D79 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.145 H 288.7°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#371D79
RGBrgb(55, 29, 121)
HSLhsl(257, 61%, 29%)
HSVhsv(257, 76%, 47%)
CMYKcmyk(54.5%, 76%, 0%, 52.5%)
CIE-LABlab(20.33, 36.40, -47.92)
CIE-LCHlch(20.33, 60.18, 307.22°)
OKLaboklab(32.93% 0.0466 -0.1377)
OKLCHoklch(32.93% 0.145 288.7)
XYZxyz(5.4651, 3.0712, 18.3903)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D79 #5F791D
analogous
#1D3179 #371D79 #651D79
triadic
#371D79 #79371D #1D7937
tetradic
#371D79 #791D31 #5F791D #1D7965
square
#371D79 #791D31 #5F791D #1D7965
split-complementary
#371D79 #79651D #31791D
monochromatic
#0B0619 #211148 #371D79 #4D29AA #693FD1

Accessibility & contrast

On white

13.01
#371D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#371D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D79
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D79#FFFFFF#000000##FFFFFF
##371D791.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#1E3649
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371d79;
/* rgb */ color: rgb(55, 29, 121);
/* oklch */ color: oklch(32.9% 0.145 288.7);
Tailwind
colors: {
  custom: {
    50: '#765ca1',
    500: '#371d79',
    950: '#000000',
  },
}
SCSS
$custom: #371d79;
$custom-light: #765ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#371d79",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 256.957,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32932,
    "c": 0.14539,
    "h": 288.7
  },
  "luminance": 0.03071
}

Semantic roles & 50–950 ramp

primary
#371D79
secondary
#8FAD45
accent
#E443B7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371D79

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

Preview Lab → · Contrast checker → · Palette generator →

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