#371990#371990

#371990 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.177 H 283.9°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#371990
RGBrgb(55, 25, 144)
HSLhsl(255, 70%, 33%)
HSVhsv(255, 83%, 56%)
CMYKcmyk(61.8%, 82.6%, 0%, 43.5%)
CIE-LABlab(22.02, 45.27, -59.62)
CIE-LCHlch(22.02, 74.86, 307.21°)
OKLaboklab(34.83% 0.0425 -0.1719)
OKLCHoklch(34.83% 0.177 283.9)
XYZxyz(6.9557, 3.5206, 26.6932)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371990 #729019
analogous
#193690 #371990 #721990
triadic
#371990 #903719 #199037
tetradic
#371990 #901936 #729019 #199072
square
#371990 #901936 #729019 #199072
split-complementary
#371990 #907219 #369019
monochromatic
#0F0728 #23105C #371990 #4B22C4 #6C45DF

Accessibility & contrast

On white

12.32
#371990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#371990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371990
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371990#FFFFFF#000000##FFFFFF
##3719901.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #371990;
/* rgb */ color: rgb(55, 25, 144);
/* oklch */ color: oklch(34.8% 0.177 283.9);
Tailwind
colors: {
  custom: {
    50: '#7a5bb2',
    500: '#371990',
    950: '#000000',
  },
}
SCSS
$custom: #371990;
$custom-light: #7a5bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#371990",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 255.126,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34832,
    "c": 0.17707,
    "h": 283.9
  },
  "luminance": 0.03521
}

Semantic roles & 50–950 ramp

primary
#371990
secondary
#A1C045
accent
#ED3BC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371990

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

Preview Lab → · Contrast checker → · Palette generator →

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