#371B73#371B73

#371B73 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.140 H 290.8°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#371B73
RGBrgb(55, 27, 115)
HSLhsl(259, 62%, 28%)
HSVhsv(259, 77%, 45%)
CMYKcmyk(52.2%, 76.5%, 0%, 54.9%)
CIE-LABlab(19.37, 35.67, -45.65)
CIE-LCHlch(19.37, 57.93, 308.01°)
OKLaboklab(32.08% 0.0499 -0.131)
OKLCHoklch(32.08% 0.14 290.8)
XYZxyz(5.0611, 2.8337, 16.4966)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B73 #57731B
analogous
#1B2B73 #371B73 #631B73
triadic
#371B73 #73371B #1B7337
tetradic
#371B73 #731B2B #57731B #1B7363
square
#371B73 #731B2B #57731B #1B7363
split-complementary
#371B73 #73631B #2B731B
monochromatic
#0C0619 #1F0F41 #371B73 #4F27A5 #6938D0

Accessibility & contrast

On white

13.40
#371B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#371B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B73
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B73#FFFFFF#000000##FFFFFF
##371B731.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#233345
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #371b73;
/* rgb */ color: rgb(55, 27, 115);
/* oklch */ color: oklch(32.1% 0.140 290.8);
Tailwind
colors: {
  custom: {
    50: '#755a9c',
    500: '#371b73',
    950: '#000000',
  },
}
SCSS
$custom: #371b73;
$custom-light: #755a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#371b73",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 259.091,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32076,
    "c": 0.14023,
    "h": 290.8
  },
  "luminance": 0.02834
}

Semantic roles & 50–950 ramp

primary
#371B73
secondary
#87A842
accent
#E543B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371B73

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

Preview Lab → · Contrast checker → · Palette generator →

#371B73 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva