#371A72#371A72

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

Color values

HEX#371A72
RGBrgb(55, 26, 114)
HSLhsl(260, 63%, 27%)
HSVhsv(260, 77%, 45%)
CMYKcmyk(51.8%, 77.2%, 0%, 55.3%)
CIE-LABlab(19.08, 35.91, -45.47)
CIE-LCHlch(19.08, 57.94, 308.30°)
OKLaboklab(31.85% 0.0511 -0.1305)
OKLCHoklch(31.85% 0.14 291.4)
XYZxyz(4.9813, 2.7657, 16.1877)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A72 #55721A
analogous
#1A2972 #371A72 #631A72
triadic
#371A72 #72371A #1A7237
tetradic
#371A72 #721A29 #55721A #1A7263
square
#371A72 #721A29 #55721A #1A7263
split-complementary
#371A72 #72631A #29721A
monochromatic
#0C0619 #1F0F40 #371A72 #4F25A4 #6935D1

Accessibility & contrast

On white

13.52
#371A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#371A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A72
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A72#FFFFFF#000000##FFFFFF
##371A721.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#233244
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #371a72;
/* rgb */ color: rgb(55, 26, 114);
/* oklch */ color: oklch(31.8% 0.140 291.4);
Tailwind
colors: {
  custom: {
    50: '#755a9b',
    500: '#371a72',
    950: '#000000',
  },
}
SCSS
$custom: #371a72;
$custom-light: #755a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#371a72",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 259.773,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31845,
    "c": 0.14016,
    "h": 291.4
  },
  "luminance": 0.02766
}

Semantic roles & 50–950 ramp

primary
#371A72
secondary
#85A741
accent
#E642B0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371A72

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

Preview Lab → · Contrast checker → · Palette generator →

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