#371889#371889

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

Color values

HEX#371889
RGBrgb(55, 24, 137)
HSLhsl(256, 70%, 32%)
HSVhsv(256, 82%, 54%)
CMYKcmyk(59.9%, 82.5%, 0%, 46.3%)
CIE-LABlab(21.10, 43.68, -56.77)
CIE-LCHlch(21.10, 71.63, 307.57°)
OKLaboklab(33.97% 0.0455 -0.1636)
OKLCHoklch(33.97% 0.17 285.5)
XYZxyz(6.4162, 3.2712, 23.9554)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371889 #6A8918
analogous
#183289 #371889 #701889
triadic
#371889 #893718 #188937
tetradic
#371889 #891832 #6A8918 #188970
square
#371889 #891832 #6A8918 #188970
split-complementary
#371889 #897018 #328918
monochromatic
#0D0621 #220F55 #371889 #4C21BD #6A3EDD

Accessibility & contrast

On white

12.69
#371889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#371889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371889
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371889#FFFFFF#000000##FFFFFF
##3718891.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#083A51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371889;
/* rgb */ color: rgb(55, 24, 137);
/* oklch */ color: oklch(34.0% 0.170 285.5);
Tailwind
colors: {
  custom: {
    50: '#795aad',
    500: '#371889',
    950: '#000000',
  },
}
SCSS
$custom: #371889;
$custom-light: #795aad;
$custom-dark: #000000;
JSON
{
  "hex": "#371889",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 256.46,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33968,
    "c": 0.16978,
    "h": 285.5
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#371889
secondary
#9ABD40
accent
#ED3BBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371889

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

Preview Lab → · Contrast checker → · Palette generator →

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