#371F52#371F52

#371F52 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.8% C 0.091 H 303.0°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#371F52
RGBrgb(55, 31, 82)
HSLhsl(268, 45%, 22%)
HSVhsv(268, 62%, 32%)
CMYKcmyk(32.9%, 62.2%, 0%, 67.8%)
CIE-LABlab(17.47, 23.48, -26.95)
CIE-LCHlch(17.47, 35.74, 311.06°)
OKLaboklab(29.84% 0.0495 -0.0761)
OKLCHoklch(29.84% 0.091 303)
XYZxyz(3.5882, 2.4014, 8.2555)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F52 #3A521F
analogous
#1F2152 #371F52 #511F52
triadic
#371F52 #52371F #1F5237
tetradic
#371F52 #521F21 #3A521F #1F5251
square
#371F52 #521F21 #3A521F #1F5251
split-complementary
#371F52 #52511F #21521F
monochromatic
#0F0816 #190E26 #371F52 #55307E #7341AB

Accessibility & contrast

On white

14.19
#371F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371F52
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F52#FFFFFF#000000##FFFFFF
##371F521.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2A54
Deuteranopia (green-blind)
#132B51
Tritanopia (blue-blind)
#322935
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #371f52;
/* rgb */ color: rgb(55, 31, 82);
/* oklch */ color: oklch(29.8% 0.091 303.0);
Tailwind
colors: {
  custom: {
    50: '#705c83',
    500: '#371f52',
    950: '#000000',
  },
}
SCSS
$custom: #371f52;
$custom-light: #705c83;
$custom-dark: #000000;
JSON
{
  "hex": "#371f52",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 268.235,
    "s": 45.133,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29844,
    "c": 0.09079,
    "h": 303
  },
  "luminance": 0.02401
}

Semantic roles & 50–950 ramp

primary
#371F52
secondary
#688746
accent
#D55398
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08040A
muted
#7B797C

Preview Lab

Preview with #371F52

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

Preview Lab → · Contrast checker → · Palette generator →

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