#371856#371856

#371856 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.0% C 0.108 H 303.2°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#371856
RGBrgb(55, 24, 86)
HSLhsl(270, 56%, 22%)
HSVhsv(270, 72%, 34%)
CMYKcmyk(36%, 72.1%, 0%, 66.3%)
CIE-LABlab(16.19, 28.87, -31.70)
CIE-LCHlch(16.19, 42.88, 312.32°)
OKLaboklab(29.02% 0.059 -0.0901)
OKLCHoklch(29.02% 0.108 303.2)
XYZxyz(3.5815, 2.1374, 9.0262)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371856 #375618
analogous
#181856 #371856 #561856
triadic
#371856 #563718 #185637
tetradic
#371856 #561818 #375618 #185656
square
#371856 #561818 #375618 #185656
split-complementary
#371856 #565618 #185618
monochromatic
#0F0718 #180B26 #371856 #562586 #7433B6

Accessibility & contrast

On white

14.71
#371856 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#371856 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371856
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371856#FFFFFF#000000##FFFFFF
##3718561.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002858
Deuteranopia (green-blind)
#022855
Tritanopia (blue-blind)
#312634
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #371856;
/* rgb */ color: rgb(55, 24, 86);
/* oklch */ color: oklch(29.0% 0.108 303.2);
Tailwind
colors: {
  custom: {
    50: '#715786',
    500: '#371856',
    950: '#000000',
  },
}
SCSS
$custom: #371856;
$custom-light: #715786;
$custom-dark: #000000;
JSON
{
  "hex": "#371856",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 86
  },
  "hsl": {
    "h": 270,
    "s": 56.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29015,
    "c": 0.10765,
    "h": 303.2
  },
  "luminance": 0.02137
}

Semantic roles & 50–950 ramp

primary
#371856
secondary
#658D3D
accent
#E04894
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #371856

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

Preview Lab → · Contrast checker → · Palette generator →

#371856 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva