#371F7D#371F7D

#371F7D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.148 H 287.2°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#371F7D
RGBrgb(55, 31, 125)
HSLhsl(255, 60%, 31%)
HSVhsv(255, 75%, 49%)
CMYKcmyk(56%, 75.2%, 0%, 51%)
CIE-LABlab(21.10, 36.53, -49.20)
CIE-LCHlch(21.10, 61.28, 306.60°)
OKLaboklab(33.6% 0.0438 -0.1415)
OKLCHoklch(33.6% 0.148 287.2)
XYZxyz(5.7661, 3.2726, 19.7259)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F7D #657D1F
analogous
#1F367D #371F7D #661F7D
triadic
#371F7D #7D371F #1F7D37
tetradic
#371F7D #7D1F36 #657D1F #1F7D66
square
#371F7D #7D1F36 #657D1F #1F7D66
split-complementary
#371F7D #7D661F #367D1F
monochromatic
#0C071B #21134C #371F7D #4D2BAE #6945D1

Accessibility & contrast

On white

12.69
#371F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#371F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F7D
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F7D#FFFFFF#000000##FFFFFF
##371F7D1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#1A384C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371f7d;
/* rgb */ color: rgb(55, 31, 125);
/* oklch */ color: oklch(33.6% 0.148 287.2);
Tailwind
colors: {
  custom: {
    50: '#765da4',
    500: '#371f7d',
    950: '#000000',
  },
}
SCSS
$custom: #371f7d;
$custom-light: #765da4;
$custom-dark: #000000;
JSON
{
  "hex": "#371f7d",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 255.319,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.336,
    "c": 0.1481,
    "h": 287.2
  },
  "luminance": 0.03273
}

Semantic roles & 50–950 ramp

primary
#371F7D
secondary
#95B048
accent
#E344BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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