#371D7B#371D7B

#371D7B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.148 H 288.1°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#371D7B
RGBrgb(55, 29, 123)
HSLhsl(257, 62%, 30%)
HSVhsv(257, 76%, 48%)
CMYKcmyk(55.3%, 76.4%, 0%, 51.8%)
CIE-LABlab(20.52, 37.01, -48.88)
CIE-LCHlch(20.52, 61.31, 307.14°)
OKLaboklab(33.13% 0.0461 -0.1405)
OKLCHoklch(33.13% 0.148 288.1)
XYZxyz(5.5890, 3.1207, 19.0429)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D7B #617B1D
analogous
#1D327B #371D7B #661D7B
triadic
#371D7B #7B371D #1D7B37
tetradic
#371D7B #7B1D32 #617B1D #1D7B66
square
#371D7B #7B1D32 #617B1D #1D7B66
split-complementary
#371D7B #7B661D #327B1D
monochromatic
#0B0619 #211149 #371D7B #4D29AD #6940D2

Accessibility & contrast

On white

12.93
#371D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#371D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D7B
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D7B#FFFFFF#000000##FFFFFF
##371D7B1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#1C374A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371d7b;
/* rgb */ color: rgb(55, 29, 123);
/* oklch */ color: oklch(33.1% 0.148 288.1);
Tailwind
colors: {
  custom: {
    50: '#765ca2',
    500: '#371d7b',
    950: '#000000',
  },
}
SCSS
$custom: #371d7b;
$custom-light: #765ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#371d7b",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 256.596,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33129,
    "c": 0.14789,
    "h": 288.1
  },
  "luminance": 0.03121
}

Semantic roles & 50–950 ramp

primary
#371D7B
secondary
#91AF45
accent
#E543B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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