#371B79#371B79

#371B79 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.148 H 289.1°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#371B79
RGBrgb(55, 27, 121)
HSLhsl(258, 64%, 29%)
HSVhsv(258, 78%, 47%)
CMYKcmyk(54.5%, 77.7%, 0%, 52.5%)
CIE-LABlab(19.95, 37.47, -48.54)
CIE-LCHlch(19.95, 61.32, 307.67°)
OKLaboklab(32.67% 0.0483 -0.1395)
OKLCHoklch(32.67% 0.148 289.1)
XYZxyz(5.4177, 2.9763, 18.3745)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B79 #5D791B
analogous
#1B2E79 #371B79 #661B79
triadic
#371B79 #79371B #1B7937
tetradic
#371B79 #791B2E #5D791B #1B7966
square
#371B79 #791B2E #5D791B #1B7966
split-complementary
#371B79 #79661B #2E791B
monochromatic
#0B0619 #201047 #371B79 #4E26AB #683BD3

Accessibility & contrast

On white

13.16
#371B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#371B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B79
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B79#FFFFFF#000000##FFFFFF
##371B791.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371b79;
/* rgb */ color: rgb(55, 27, 121);
/* oklch */ color: oklch(32.7% 0.148 289.1);
Tailwind
colors: {
  custom: {
    50: '#765ba1',
    500: '#371b79',
    950: '#000000',
  },
}
SCSS
$custom: #371b79;
$custom-light: #765ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#371b79",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 257.872,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32666,
    "c": 0.14766,
    "h": 289.1
  },
  "luminance": 0.02977
}

Semantic roles & 50–950 ramp

primary
#371B79
secondary
#8DAD43
accent
#E741B5
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371B79

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

Preview Lab → · Contrast checker → · Palette generator →

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