#371B7A#371B7A

#371B7A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.149 H 288.8°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#371B7A
RGBrgb(55, 27, 122)
HSLhsl(258, 64%, 29%)
HSVhsv(258, 78%, 48%)
CMYKcmyk(54.9%, 77.9%, 0%, 52.2%)
CIE-LABlab(20.05, 37.77, -49.02)
CIE-LCHlch(20.05, 61.88, 307.62°)
OKLaboklab(32.77% 0.048 -0.1409)
OKLCHoklch(32.77% 0.149 288.8)
XYZxyz(5.4793, 3.0010, 18.6991)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B7A #5E7A1B
analogous
#1B2F7A #371B7A #671B7A
triadic
#371B7A #7A371B #1B7A37
tetradic
#371B7A #7A1B2F #5E7A1B #1B7A67
square
#371B7A #7A1B2F #5E7A1B #1B7A67
split-complementary
#371B7A #7A671B #2F7A1B
monochromatic
#0B0619 #201048 #371B7A #4E26AC #683CD4

Accessibility & contrast

On white

13.12
#371B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371B7A
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B7A#FFFFFF#000000##FFFFFF
##371B7A1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#1D3549
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371b7a;
/* rgb */ color: rgb(55, 27, 122);
/* oklch */ color: oklch(32.8% 0.149 288.8);
Tailwind
colors: {
  custom: {
    50: '#765ba1',
    500: '#371b7a',
    950: '#000000',
  },
}
SCSS
$custom: #371b7a;
$custom-light: #765ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#371b7a",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 257.684,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32766,
    "c": 0.14889,
    "h": 288.8
  },
  "luminance": 0.03001
}

Semantic roles & 50–950 ramp

primary
#371B7A
secondary
#8EAE43
accent
#E741B6
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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