#371794#371794

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

Color values

HEX#371794
RGBrgb(55, 23, 148)
HSLhsl(255, 73%, 34%)
HSVhsv(255, 84%, 58%)
CMYKcmyk(62.8%, 84.5%, 0%, 42%)
CIE-LABlab(22.17, 47.29, -61.85)
CIE-LCHlch(22.17, 77.86, 307.40°)
OKLaboklab(35.07% 0.0422 -0.1784)
OKLCHoklch(35.07% 0.183 283.3)
XYZxyz(7.2256, 3.5626, 28.3181)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371794 #749417
analogous
#173594 #371794 #751794
triadic
#371794 #943717 #179437
tetradic
#371794 #941735 #749417 #179475
square
#371794 #941735 #749417 #179475
split-complementary
#371794 #947517 #359417
monochromatic
#10072A #230F5F #371794 #4B1FC9 #6C44E2

Accessibility & contrast

On white

12.26
#371794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371794
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371794#FFFFFF#000000##FFFFFF
##3717941.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371794;
/* rgb */ color: rgb(55, 23, 148);
/* oklch */ color: oklch(35.1% 0.183 283.3);
Tailwind
colors: {
  custom: {
    50: '#7b5ab5',
    500: '#371794',
    950: '#000000',
  },
}
SCSS
$custom: #371794;
$custom-light: #7b5ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#371794",
  "rgb": {
    "r": 55,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 255.36,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35067,
    "c": 0.18328,
    "h": 283.3
  },
  "luminance": 0.03563
}

Semantic roles & 50–950 ramp

primary
#371794
secondary
#A2C344
accent
#F038C1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #371794

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

Preview Lab → · Contrast checker → · Palette generator →

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