#371C8A#371C8A

#371C8A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.167 H 284.7°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#371C8A
RGBrgb(55, 28, 138)
HSLhsl(255, 66%, 33%)
HSVhsv(255, 80%, 54%)
CMYKcmyk(60.1%, 79.7%, 0%, 45.9%)
CIE-LABlab(21.86, 42.07, -56.14)
CIE-LCHlch(21.86, 70.16, 306.85°)
OKLaboklab(34.53% 0.0426 -0.1618)
OKLCHoklch(34.53% 0.167 284.7)
XYZxyz(6.5768, 3.4773, 24.3645)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C8A #6F8A1C
analogous
#1C388A #371C8A #6E1C8A
triadic
#371C8A #8A371C #1C8A37
tetradic
#371C8A #8A1C38 #6F8A1C #1C8A6E
square
#371C8A #8A1C38 #6F8A1C #1C8A6E
split-complementary
#371C8A #8A6E1C #388A1C
monochromatic
#0E0724 #231257 #371C8A #4B26BD #6B47DA

Accessibility & contrast

On white

12.38
#371C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#371C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C8A
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C8A#FFFFFF#000000##FFFFFF
##371C8A1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#053C53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #371c8a;
/* rgb */ color: rgb(55, 28, 138);
/* oklch */ color: oklch(34.5% 0.167 284.7);
Tailwind
colors: {
  custom: {
    50: '#795cad',
    500: '#371c8a',
    950: '#000000',
  },
}
SCSS
$custom: #371c8a;
$custom-light: #795cad;
$custom-dark: #000000;
JSON
{
  "hex": "#371c8a",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 254.727,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3453,
    "c": 0.16728,
    "h": 284.7
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#371C8A
secondary
#9FBB46
accent
#E93FBF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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