#371982#371982

#371982 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.161 H 287.1°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#371982
RGBrgb(55, 25, 130)
HSLhsl(257, 68%, 30%)
HSVhsv(257, 81%, 51%)
CMYKcmyk(57.7%, 80.8%, 0%, 49%)
CIE-LABlab(20.51, 41.16, -53.33)
CIE-LCHlch(20.51, 67.37, 307.66°)
OKLaboklab(33.34% 0.0472 -0.1535)
OKLCHoklch(33.34% 0.161 287.1)
XYZxyz(5.9512, 3.1189, 21.4032)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371982 #648219
analogous
#192F82 #371982 #6B1982
triadic
#371982 #823719 #198237
tetradic
#371982 #82192F #648219 #19826B
square
#371982 #82192F #648219 #19826B
split-complementary
#371982 #826B19 #2F8219
monochromatic
#0C051B #210F4F #371982 #4D23B5 #693CD9

Accessibility & contrast

On white

12.93
#371982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#371982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371982
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371982#FFFFFF#000000##FFFFFF
##3719821.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#15384D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371982;
/* rgb */ color: rgb(55, 25, 130);
/* oklch */ color: oklch(33.3% 0.161 287.1);
Tailwind
colors: {
  custom: {
    50: '#785aa7',
    500: '#371982',
    950: '#000000',
  },
}
SCSS
$custom: #371982;
$custom-light: #785aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#371982",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 257.143,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33339,
    "c": 0.16061,
    "h": 287.1
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

primary
#371982
secondary
#94B641
accent
#EB3DB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371982

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

Preview Lab → · Contrast checker → · Palette generator →

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