#371D8B#371D8B

#371D8B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.168 H 284.4°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#371D8B
RGBrgb(55, 29, 139)
HSLhsl(254, 65%, 33%)
HSVhsv(254, 79%, 55%)
CMYKcmyk(60.4%, 79.1%, 0%, 45.5%)
CIE-LABlab(22.14, 41.88, -56.31)
CIE-LCHlch(22.14, 70.17, 306.64°)
OKLaboklab(34.76% 0.0416 -0.1623)
OKLCHoklch(34.76% 0.168 284.4)
XYZxyz(6.6737, 3.5546, 24.7555)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D8B #718B1D
analogous
#1D3A8B #371D8B #6E1D8B
triadic
#371D8B #8B371D #1D8B37
tetradic
#371D8B #8B1D3A #718B1D #1D8B6E
square
#371D8B #8B1D3A #718B1D #1D8B6E
split-complementary
#371D8B #8B6E1D #3A8B1D
monochromatic
#0F0826 #231258 #371D8B #4B28BE #6B49D9

Accessibility & contrast

On white

12.27
#371D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#371D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D8B
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D8B#FFFFFF#000000##FFFFFF
##371D8B1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#033D53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #371d8b;
/* rgb */ color: rgb(55, 29, 139);
/* oklch */ color: oklch(34.8% 0.168 284.4);
Tailwind
colors: {
  custom: {
    50: '#795dae',
    500: '#371d8b',
    950: '#000000',
  },
}
SCSS
$custom: #371d8b;
$custom-light: #795dae;
$custom-dark: #000000;
JSON
{
  "hex": "#371d8b",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 254.182,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34756,
    "c": 0.16752,
    "h": 284.4
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#371D8B
secondary
#A0BB49
accent
#E83FC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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