#371F57#371F57

#371F57 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.2% C 0.098 H 300.4°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#371F57
RGBrgb(55, 31, 87)
HSLhsl(266, 47%, 23%)
HSVhsv(266, 64%, 34%)
CMYKcmyk(36.8%, 64.4%, 0%, 65.9%)
CIE-LABlab(17.83, 24.93, -29.73)
CIE-LCHlch(17.83, 38.81, 309.98°)
OKLaboklab(30.23% 0.0495 -0.0843)
OKLCHoklch(30.23% 0.098 300.4)
XYZxyz(3.7854, 2.4803, 9.2943)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F57 #3F571F
analogous
#1F2357 #371F57 #531F57
triadic
#371F57 #57371F #1F5737
tetradic
#371F57 #571F23 #3F571F #1F5753
square
#371F57 #571F23 #3F571F #1F5753
split-complementary
#371F57 #57531F #23571F
monochromatic
#0E0817 #1A0F2A #371F57 #542F84 #703FB1

Accessibility & contrast

On white

14.04
#371F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#371F57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F57
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F57#FFFFFF#000000##FFFFFF
##371F571.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022B59
Deuteranopia (green-blind)
#0D2B56
Tritanopia (blue-blind)
#302B37
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #371f57;
/* rgb */ color: rgb(55, 31, 87);
/* oklch */ color: oklch(30.2% 0.098 300.4);
Tailwind
colors: {
  custom: {
    50: '#705c87',
    500: '#371f57',
    950: '#000000',
  },
}
SCSS
$custom: #371f57;
$custom-light: #705c87;
$custom-dark: #000000;
JSON
{
  "hex": "#371f57",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 87
  },
  "hsl": {
    "h": 265.714,
    "s": 47.458,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30226,
    "c": 0.09774,
    "h": 300.4
  },
  "luminance": 0.0248
}

Semantic roles & 50–950 ramp

primary
#371F57
secondary
#6E8C46
accent
#D7519D
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08040B
muted
#7B797C

Preview Lab

Preview with #371F57

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

Preview Lab → · Contrast checker → · Palette generator →

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