#371458#371458

#371458 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.116 H 303.2°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#371458
RGBrgb(55, 20, 88)
HSLhsl(271, 63%, 21%)
HSVhsv(271, 77%, 35%)
CMYKcmyk(37.5%, 77.3%, 0%, 65.5%)
CIE-LABlab(15.58, 31.60, -34.05)
CIE-LCHlch(15.58, 46.45, 312.87°)
OKLaboklab(28.63% 0.0635 -0.0969)
OKLCHoklch(28.63% 0.116 303.2)
XYZxyz(3.5867, 2.0171, 9.4310)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371458 #355814
analogous
#151458 #371458 #581457
triadic
#371458 #583714 #145837
tetradic
#371458 #581514 #355814 #145758
square
#371458 #581514 #355814 #145758
split-complementary
#371458 #575814 #145815
monochromatic
#100619 #180926 #371458 #561F8A #752BBC

Accessibility & contrast

On white

14.96
#371458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#371458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371458
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371458#FFFFFF#000000##FFFFFF
##3714581.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371458;
/* rgb */ color: rgb(55, 20, 88);
/* oklch */ color: oklch(28.6% 0.116 303.2);
Tailwind
colors: {
  custom: {
    50: '#715588',
    500: '#371458',
    950: '#000000',
  },
}
SCSS
$custom: #371458;
$custom-light: #715588;
$custom-dark: #000000;
JSON
{
  "hex": "#371458",
  "rgb": {
    "r": 55,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 270.882,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28628,
    "c": 0.11588,
    "h": 303.2
  },
  "luminance": 0.02017
}

Semantic roles & 50–950 ramp

primary
#371458
secondary
#639038
accent
#E64291
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #371458

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

Preview Lab → · Contrast checker → · Palette generator →

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