#371A8A#371A8A

#371A8A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.169 H 285.0°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#371A8A
RGBrgb(55, 26, 138)
HSLhsl(256, 68%, 32%)
HSVhsv(256, 81%, 54%)
CMYKcmyk(60.1%, 81.2%, 0%, 45.9%)
CIE-LABlab(21.53, 43.04, -56.70)
CIE-LCHlch(21.53, 71.18, 307.21°)
OKLaboklab(34.3% 0.0439 -0.1634)
OKLCHoklch(34.3% 0.169 285)
XYZxyz(6.5310, 3.3856, 24.3492)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A8A #6D8A1A
analogous
#1A358A #371A8A #6F1A8A
triadic
#371A8A #8A371A #1A8A37
tetradic
#371A8A #8A1A35 #6D8A1A #1A8A6F
square
#371A8A #8A1A35 #6D8A1A #1A8A6F
split-complementary
#371A8A #8A6F1A #358A1A
monochromatic
#0E0723 #221057 #371A8A #4C24BD #6A43DC

Accessibility & contrast

On white

12.52
#371A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371A8A
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A8A#FFFFFF#000000##FFFFFF
##371A8A1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#063B52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #371a8a;
/* rgb */ color: rgb(55, 26, 138);
/* oklch */ color: oklch(34.3% 0.169 285.0);
Tailwind
colors: {
  custom: {
    50: '#795bad',
    500: '#371a8a',
    950: '#000000',
  },
}
SCSS
$custom: #371a8a;
$custom-light: #795bad;
$custom-dark: #000000;
JSON
{
  "hex": "#371a8a",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 255.536,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34297,
    "c": 0.16916,
    "h": 285
  },
  "luminance": 0.03386
}

Semantic roles & 50–950 ramp

primary
#371A8A
secondary
#9DBD43
accent
#EB3DBE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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