#371F58#371F58

#371F58 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.3% C 0.099 H 299.9°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#371F58
RGBrgb(55, 31, 88)
HSLhsl(265, 48%, 23%)
HSVhsv(265, 65%, 35%)
CMYKcmyk(37.5%, 64.8%, 0%, 65.5%)
CIE-LABlab(17.90, 25.23, -30.28)
CIE-LCHlch(17.90, 39.42, 309.80°)
OKLaboklab(30.3% 0.0494 -0.0859)
OKLCHoklch(30.3% 0.099 299.9)
XYZxyz(3.8266, 2.4967, 9.5109)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F58 #40581F
analogous
#1F2358 #371F58 #531F58
triadic
#371F58 #58371F #1F5837
tetradic
#371F58 #581F23 #40581F #1F5853
square
#371F58 #581F23 #40581F #1F5853
split-complementary
#371F58 #58531F #23581F
monochromatic
#0E0817 #1B0F2B #371F58 #532F85 #703FB3

Accessibility & contrast

On white

14.01
#371F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371F58
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F58#FFFFFF#000000##FFFFFF
##371F581.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012C5A
Deuteranopia (green-blind)
#0C2B57
Tritanopia (blue-blind)
#302B38
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #371f58;
/* rgb */ color: rgb(55, 31, 88);
/* oklch */ color: oklch(30.3% 0.099 299.9);
Tailwind
colors: {
  custom: {
    50: '#715c87',
    500: '#371f58',
    950: '#000000',
  },
}
SCSS
$custom: #371f58;
$custom-light: #715c87;
$custom-dark: #000000;
JSON
{
  "hex": "#371f58",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 88
  },
  "hsl": {
    "h": 265.263,
    "s": 47.899,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30304,
    "c": 0.09912,
    "h": 299.9
  },
  "luminance": 0.02497
}

Semantic roles & 50–950 ramp

primary
#371F58
secondary
#6F8D46
accent
#D7509F
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08040B
muted
#7B797C

Preview Lab

Preview with #371F58

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

Preview Lab → · Contrast checker → · Palette generator →

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