#371558#371558

#371558 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.115 H 303.0°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#371558
RGBrgb(55, 21, 88)
HSLhsl(270, 61%, 21%)
HSVhsv(270, 76%, 35%)
CMYKcmyk(37.5%, 76.1%, 0%, 65.5%)
CIE-LABlab(15.76, 31.08, -33.74)
CIE-LCHlch(15.76, 45.88, 312.65°)
OKLaboklab(28.76% 0.0623 -0.096)
OKLCHoklch(28.76% 0.115 303)
XYZxyz(3.6048, 2.0531, 9.4370)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371558 #365815
analogous
#161558 #371558 #581558
triadic
#371558 #583715 #155837
tetradic
#371558 #581615 #365815 #155858
square
#371558 #581615 #365815 #155858
split-complementary
#371558 #585815 #155816
monochromatic
#0F0619 #180927 #371558 #562189 #752DBB

Accessibility & contrast

On white

14.89
#371558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#371558 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371558
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371558#FFFFFF#000000##FFFFFF
##3715581.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002757
Tritanopia (blue-blind)
#302535
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #371558;
/* rgb */ color: rgb(55, 21, 88);
/* oklch */ color: oklch(28.8% 0.115 303.0);
Tailwind
colors: {
  custom: {
    50: '#715688',
    500: '#371558',
    950: '#000000',
  },
}
SCSS
$custom: #371558;
$custom-light: #715688;
$custom-dark: #000000;
JSON
{
  "hex": "#371558",
  "rgb": {
    "r": 55,
    "g": 21,
    "b": 88
  },
  "hsl": {
    "h": 270.448,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28761,
    "c": 0.1145,
    "h": 303
  },
  "luminance": 0.02053
}

Semantic roles & 50–950 ramp

primary
#371558
secondary
#649039
accent
#E54393
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #371558

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

Preview Lab → · Contrast checker → · Palette generator →

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