#371A80#371A80

#371A80 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.157 H 287.4°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#371A80
RGBrgb(55, 26, 128)
HSLhsl(257, 66%, 30%)
HSVhsv(257, 80%, 50%)
CMYKcmyk(57%, 79.7%, 0%, 49.8%)
CIE-LABlab(20.48, 40.08, -52.13)
CIE-LCHlch(20.48, 65.76, 307.55°)
OKLaboklab(33.25% 0.0471 -0.15)
OKLCHoklch(33.25% 0.157 287.4)
XYZxyz(5.8401, 3.1092, 20.7103)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A80 #63801A
analogous
#1A3080 #371A80 #6A1A80
triadic
#371A80 #80371A #1A8037
tetradic
#371A80 #801A30 #63801A #1A806A
square
#371A80 #801A30 #63801A #1A806A
split-complementary
#371A80 #806A1A #30801A
monochromatic
#0B051A #21104D #371A80 #4D24B3 #693DD8

Accessibility & contrast

On white

12.95
#371A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#371A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A80
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A80#FFFFFF#000000##FFFFFF
##371A801.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#17374C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371a80;
/* rgb */ color: rgb(55, 26, 128);
/* oklch */ color: oklch(33.3% 0.157 287.4);
Tailwind
colors: {
  custom: {
    50: '#775aa6',
    500: '#371a80',
    950: '#000000',
  },
}
SCSS
$custom: #371a80;
$custom-light: #775aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#371a80",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 128
  },
  "hsl": {
    "h": 257.059,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3325,
    "c": 0.15724,
    "h": 287.4
  },
  "luminance": 0.0311
}

Semantic roles & 50–950 ramp

primary
#371A80
secondary
#93B442
accent
#E93FB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #371A80

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

Preview Lab → · Contrast checker → · Palette generator →

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