#371256#371256

#371256 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.116 H 304.7°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#371256
RGBrgb(55, 18, 86)
HSLhsl(273, 65%, 20%)
HSVhsv(273, 79%, 34%)
CMYKcmyk(36%, 79.1%, 0%, 66.3%)
CIE-LABlab(15.04, 32.08, -33.56)
CIE-LCHlch(15.04, 46.43, 313.70°)
OKLaboklab(28.2% 0.0661 -0.0955)
OKLCHoklch(28.2% 0.116 304.7)
XYZxyz(3.4712, 1.9167, 8.9894)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371256 #315612
analogous
#151256 #371256 #561253
triadic
#371256 #563712 #125637
tetradic
#371256 #561512 #315612 #125356
square
#371256 #561512 #315612 #125356
split-complementary
#371256 #535612 #125615
monochromatic
#100519 #170723 #371256 #571D89 #7827BB

Accessibility & contrast

On white

15.18
#371256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#371256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371256
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371256#FFFFFF#000000##FFFFFF
##3712561.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002655
Tritanopia (blue-blind)
#312233
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #371256;
/* rgb */ color: rgb(55, 18, 86);
/* oklch */ color: oklch(28.2% 0.116 304.7);
Tailwind
colors: {
  custom: {
    50: '#715486',
    500: '#371256',
    950: '#000000',
  },
}
SCSS
$custom: #371256;
$custom-light: #715486;
$custom-dark: #000000;
JSON
{
  "hex": "#371256",
  "rgb": {
    "r": 55,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 272.647,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28196,
    "c": 0.11616,
    "h": 304.7
  },
  "luminance": 0.01917
}

Semantic roles & 50–950 ramp

primary
#371256
secondary
#5E8F35
accent
#E83F8C
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #371256

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

Preview Lab → · Contrast checker → · Palette generator →

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