#371A8B#371A8B

#371A8B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.170 H 284.8°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#371A8B
RGBrgb(55, 26, 139)
HSLhsl(255, 68%, 32%)
HSVhsv(255, 81%, 55%)
CMYKcmyk(60.4%, 81.3%, 0%, 45.5%)
CIE-LABlab(21.63, 43.34, -57.14)
CIE-LCHlch(21.63, 71.72, 307.18°)
OKLaboklab(34.4% 0.0436 -0.1647)
OKLCHoklch(34.4% 0.17 284.8)
XYZxyz(6.6037, 3.4147, 24.7322)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A8B #6E8B1A
analogous
#1A368B #371A8B #6F1A8B
triadic
#371A8B #8B371A #1A8B37
tetradic
#371A8B #8B1A36 #6E8B1A #1A8B6F
square
#371A8B #8B1A36 #6E8B1A #1A8B6F
split-complementary
#371A8B #8B6F1A #368B1A
monochromatic
#0E0724 #231057 #371A8B #4B24BF #6B43DC

Accessibility & contrast

On white

12.48
#371A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#371A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A8B
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A8B#FFFFFF#000000##FFFFFF
##371A8B1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#033C53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #371a8b;
/* rgb */ color: rgb(55, 26, 139);
/* oklch */ color: oklch(34.4% 0.170 284.8);
Tailwind
colors: {
  custom: {
    50: '#795bae',
    500: '#371a8b',
    950: '#000000',
  },
}
SCSS
$custom: #371a8b;
$custom-light: #795bae;
$custom-dark: #000000;
JSON
{
  "hex": "#371a8b",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 255.398,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34403,
    "c": 0.17034,
    "h": 284.8
  },
  "luminance": 0.03415
}

Semantic roles & 50–950 ramp

primary
#371A8B
secondary
#9EBD44
accent
#EB3CBE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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