#371C7B#371C7B

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

Color values

HEX#371C7B
RGBrgb(55, 28, 123)
HSLhsl(257, 63%, 30%)
HSVhsv(257, 77%, 48%)
CMYKcmyk(55.3%, 77.2%, 0%, 51.8%)
CIE-LABlab(20.33, 37.55, -49.19)
CIE-LCHlch(20.33, 61.88, 307.36°)
OKLaboklab(33% 0.0469 -0.1414)
OKLCHoklch(33% 0.149 288.4)
XYZxyz(5.5649, 3.0725, 19.0349)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C7B #607B1C
analogous
#1C307B #371C7B #671C7B
triadic
#371C7B #7B371C #1C7B37
tetradic
#371C7B #7B1C30 #607B1C #1C7B67
square
#371C7B #7B1C30 #607B1C #1C7B67
split-complementary
#371C7B #7B671C #307B1C
monochromatic
#0B0619 #211149 #371C7B #4D27AD #693ED3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##371C7B#FFFFFF#000000##FFFFFF
##371C7B1.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)
#00337E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#1C364A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371c7b;
/* rgb */ color: rgb(55, 28, 123);
/* oklch */ color: oklch(33.0% 0.149 288.4);
Tailwind
colors: {
  custom: {
    50: '#765ba2',
    500: '#371c7b',
    950: '#000000',
  },
}
SCSS
$custom: #371c7b;
$custom-light: #765ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#371c7b",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 257.053,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32996,
    "c": 0.14902,
    "h": 288.4
  },
  "luminance": 0.03073
}

Semantic roles & 50–950 ramp

primary
#371C7B
secondary
#90AF44
accent
#E642B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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