#371E56#371E56

#371E56 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.0% C 0.098 H 301.3°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#371E56
RGBrgb(55, 30, 86)
HSLhsl(267, 48%, 23%)
HSVhsv(267, 65%, 34%)
CMYKcmyk(36%, 65.1%, 0%, 66.3%)
CIE-LABlab(17.52, 25.27, -29.56)
CIE-LCHlch(17.52, 38.89, 310.52°)
OKLaboklab(29.98% 0.0509 -0.0838)
OKLCHoklch(29.98% 0.098 301.3)
XYZxyz(3.7191, 2.4126, 9.0720)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E56 #3D561E
analogous
#1E2156 #371E56 #531E56
triadic
#371E56 #56371E #1E5637
tetradic
#371E56 #561E21 #3D561E #1E5653
square
#371E56 #561E21 #3D561E #1E5653
split-complementary
#371E56 #56531E #21561E
monochromatic
#0F0817 #1A0E29 #371E56 #542E83 #713EB1

Accessibility & contrast

On white

14.16
#371E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#371E56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E56
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E56#FFFFFF#000000##FFFFFF
##371E561.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012B58
Deuteranopia (green-blind)
#0D2B55
Tritanopia (blue-blind)
#312A36
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #371e56;
/* rgb */ color: rgb(55, 30, 86);
/* oklch */ color: oklch(30.0% 0.098 301.3);
Tailwind
colors: {
  custom: {
    50: '#705b86',
    500: '#371e56',
    950: '#000000',
  },
}
SCSS
$custom: #371e56;
$custom-light: #705b86;
$custom-dark: #000000;
JSON
{
  "hex": "#371e56",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 86
  },
  "hsl": {
    "h": 266.786,
    "s": 48.276,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29975,
    "c": 0.09804,
    "h": 301.3
  },
  "luminance": 0.02413
}

Semantic roles & 50–950 ramp

primary
#371E56
secondary
#6C8B45
accent
#D8509B
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08040B
muted
#7B797C

Preview Lab

Preview with #371E56

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

Preview Lab → · Contrast checker → · Palette generator →

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