#371988#371988

#371988 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.168 H 285.6°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#371988
RGBrgb(55, 25, 136)
HSLhsl(256, 69%, 32%)
HSVhsv(256, 82%, 53%)
CMYKcmyk(59.6%, 81.6%, 0%, 46.7%)
CIE-LABlab(21.15, 42.92, -56.06)
CIE-LCHlch(21.15, 70.61, 307.44°)
OKLaboklab(33.97% 0.0452 -0.1615)
OKLCHoklch(33.97% 0.168 285.6)
XYZxyz(6.3658, 3.2847, 23.5863)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371988 #6A8819
analogous
#193388 #371988 #6F1988
triadic
#371988 #883719 #198837
tetradic
#371988 #881933 #6A8819 #19886F
square
#371988 #881933 #6A8819 #19886F
split-complementary
#371988 #886F19 #338819
monochromatic
#0D0621 #220F54 #371988 #4C23BC #6A40DC

Accessibility & contrast

On white

12.67
#371988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#371988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371988
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371988#FFFFFF#000000##FFFFFF
##3719881.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#0B3A51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371988;
/* rgb */ color: rgb(55, 25, 136);
/* oklch */ color: oklch(34.0% 0.168 285.6);
Tailwind
colors: {
  custom: {
    50: '#795aac',
    500: '#371988',
    950: '#000000',
  },
}
SCSS
$custom: #371988;
$custom-light: #795aac;
$custom-dark: #000000;
JSON
{
  "hex": "#371988",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 256.216,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33971,
    "c": 0.16772,
    "h": 285.6
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#371988
secondary
#9ABB41
accent
#EC3CBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371988

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

Preview Lab → · Contrast checker → · Palette generator →

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