#371893#371893

#371893 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.181 H 283.4°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#371893
RGBrgb(55, 24, 147)
HSLhsl(255, 72%, 34%)
HSVhsv(255, 84%, 58%)
CMYKcmyk(62.6%, 83.7%, 0%, 42.4%)
CIE-LABlab(22.20, 46.58, -61.18)
CIE-LCHlch(22.20, 76.89, 307.28°)
OKLaboklab(35.06% 0.042 -0.1764)
OKLCHoklch(35.06% 0.181 283.4)
XYZxyz(7.1670, 3.5716, 27.9098)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371893 #749318
analogous
#183693 #371893 #741893
triadic
#371893 #933718 #189337
tetradic
#371893 #931836 #749318 #189374
square
#371893 #931836 #749318 #189374
split-complementary
#371893 #937418 #369318
monochromatic
#10072A #230F5E #371893 #4B21C8 #6C45E1

Accessibility & contrast

On white

12.25
#371893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#371893 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371893
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371893#FFFFFF#000000##FFFFFF
##3718931.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371893;
/* rgb */ color: rgb(55, 24, 147);
/* oklch */ color: oklch(35.1% 0.181 283.4);
Tailwind
colors: {
  custom: {
    50: '#7b5bb4',
    500: '#371893',
    950: '#000000',
  },
}
SCSS
$custom: #371893;
$custom-light: #7b5bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#371893",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 147
  },
  "hsl": {
    "h": 255.122,
    "s": 71.93,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35056,
    "c": 0.18136,
    "h": 283.4
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#371893
secondary
#A2C245
accent
#EF39C1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #371893

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

Preview Lab → · Contrast checker → · Palette generator →

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