#371992#371992

#371992 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.179 H 283.5°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#371992
RGBrgb(55, 25, 146)
HSLhsl(255, 71%, 34%)
HSVhsv(255, 83%, 57%)
CMYKcmyk(62.3%, 82.9%, 0%, 42.7%)
CIE-LABlab(22.24, 45.85, -60.50)
CIE-LCHlch(22.24, 75.91, 307.16°)
OKLaboklab(35.05% 0.0418 -0.1744)
OKLCHoklch(35.05% 0.179 283.5)
XYZxyz(7.1099, 3.5823, 27.5054)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371992 #749219
analogous
#193792 #371992 #731992
triadic
#371992 #923719 #199237
tetradic
#371992 #921937 #749219 #199273
square
#371992 #921937 #749219 #199273
split-complementary
#371992 #927319 #379219
monochromatic
#100729 #23105E #371992 #4B22C6 #6C46DF

Accessibility & contrast

On white

12.23
#371992 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#371992 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371992
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371992#FFFFFF#000000##FFFFFF
##3719921.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003995
Deuteranopia (green-blind)
#003190
Tritanopia (blue-blind)
#003E57
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #371992;
/* rgb */ color: rgb(55, 25, 146);
/* oklch */ color: oklch(35.0% 0.179 283.5);
Tailwind
colors: {
  custom: {
    50: '#7b5bb3',
    500: '#371992',
    950: '#000000',
  },
}
SCSS
$custom: #371992;
$custom-light: #7b5bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#371992",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 146
  },
  "hsl": {
    "h": 254.876,
    "s": 70.76,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3505,
    "c": 0.17939,
    "h": 283.5
  },
  "luminance": 0.03583
}

Semantic roles & 50–950 ramp

primary
#371992
secondary
#A2C146
accent
#EE3AC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371992

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

Preview Lab → · Contrast checker → · Palette generator →

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