#371689#371689

#371689 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.171 H 285.8°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#371689
RGBrgb(55, 22, 137)
HSLhsl(257, 72%, 31%)
HSVhsv(257, 84%, 54%)
CMYKcmyk(59.9%, 83.9%, 0%, 46.3%)
CIE-LABlab(20.80, 44.56, -57.27)
CIE-LCHlch(20.80, 72.57, 307.88°)
OKLaboklab(33.76% 0.0467 -0.165)
OKLCHoklch(33.76% 0.171 285.8)
XYZxyz(6.3764, 3.1918, 23.9421)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371689 #688916
analogous
#162F89 #371689 #701689
triadic
#371689 #893716 #168937
tetradic
#371689 #89162F #688916 #168970
square
#371689 #89162F #688916 #168970
split-complementary
#371689 #897016 #2F8916
monochromatic
#0D0520 #220E54 #371689 #4C1EBE #693ADF

Accessibility & contrast

On white

12.82
#371689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#371689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371689
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371689#FFFFFF#000000##FFFFFF
##3716891.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#093951
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371689;
/* rgb */ color: rgb(55, 22, 137);
/* oklch */ color: oklch(33.8% 0.171 285.8);
Tailwind
colors: {
  custom: {
    50: '#7959ad',
    500: '#371689',
    950: '#000000',
  },
}
SCSS
$custom: #371689;
$custom-light: #7959ad;
$custom-dark: #000000;
JSON
{
  "hex": "#371689",
  "rgb": {
    "r": 55,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 257.217,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33759,
    "c": 0.17148,
    "h": 285.8
  },
  "luminance": 0.03192
}

Semantic roles & 50–950 ramp

primary
#371689
secondary
#98BD3E
accent
#EF39BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371689

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

Preview Lab → · Contrast checker → · Palette generator →

#371689 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva