#371F56#371F56

#371F56 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.1% C 0.096 H 300.9°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#371F56
RGBrgb(55, 31, 86)
HSLhsl(266, 47%, 23%)
HSVhsv(266, 64%, 34%)
CMYKcmyk(36%, 64%, 0%, 66.3%)
CIE-LABlab(17.76, 24.64, -29.18)
CIE-LCHlch(17.76, 38.19, 310.18°)
OKLaboklab(30.15% 0.0495 -0.0827)
OKLCHoklch(30.15% 0.096 300.9)
XYZxyz(3.7449, 2.4641, 9.0806)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F56 #3E561F
analogous
#1F2256 #371F56 #521F56
triadic
#371F56 #56371F #1F5637
tetradic
#371F56 #561F22 #3E561F #1F5652
square
#371F56 #561F22 #3E561F #1F5652
split-complementary
#371F56 #56521F #22561F
monochromatic
#0E0816 #1A0F29 #371F56 #542F83 #713FB0

Accessibility & contrast

On white

14.07
#371F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#371F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F56
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F56#FFFFFF#000000##FFFFFF
##371F561.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042B58
Deuteranopia (green-blind)
#0F2B55
Tritanopia (blue-blind)
#312A37
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #371f56;
/* rgb */ color: rgb(55, 31, 86);
/* oklch */ color: oklch(30.1% 0.096 300.9);
Tailwind
colors: {
  custom: {
    50: '#705c86',
    500: '#371f56',
    950: '#000000',
  },
}
SCSS
$custom: #371f56;
$custom-light: #705c86;
$custom-dark: #000000;
JSON
{
  "hex": "#371f56",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 266.182,
    "s": 47.009,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30148,
    "c": 0.09635,
    "h": 300.9
  },
  "luminance": 0.02464
}

Semantic roles & 50–950 ramp

primary
#371F56
secondary
#6D8B46
accent
#D7519C
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08040B
muted
#7B797C

Preview Lab

Preview with #371F56

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

Preview Lab → · Contrast checker → · Palette generator →

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