#371B7F#371B7F

#371B7F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.155 H 287.5°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#371B7F
RGBrgb(55, 27, 127)
HSLhsl(257, 65%, 30%)
HSVhsv(257, 79%, 50%)
CMYKcmyk(56.7%, 78.7%, 0%, 50.2%)
CIE-LABlab(20.55, 39.27, -51.37)
CIE-LCHlch(20.55, 64.67, 307.40°)
OKLaboklab(33.27% 0.0466 -0.1478)
OKLCHoklch(33.27% 0.155 287.5)
XYZxyz(5.7971, 3.1281, 20.3729)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B7F #637F1B
analogous
#1B317F #371B7F #691B7F
triadic
#371B7F #7F371B #1B7F37
tetradic
#371B7F #7F1B31 #637F1B #1B7F69
square
#371B7F #7F1B31 #637F1B #1B7F69
split-complementary
#371B7F #7F691B #317F1B
monochromatic
#0B061A #21104D #371B7F #4D26B1 #693ED6

Accessibility & contrast

On white

12.92
#371B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#371B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B7F
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B7F#FFFFFF#000000##FFFFFF
##371B7F1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#18374C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371b7f;
/* rgb */ color: rgb(55, 27, 127);
/* oklch */ color: oklch(33.3% 0.155 287.5);
Tailwind
colors: {
  custom: {
    50: '#775ba5',
    500: '#371b7f',
    950: '#000000',
  },
}
SCSS
$custom: #371b7f;
$custom-light: #775ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#371b7f",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 256.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3327,
    "c": 0.155,
    "h": 287.5
  },
  "luminance": 0.03128
}

Semantic roles & 50–950 ramp

primary
#371B7F
secondary
#93B343
accent
#E840B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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