#371985#371985

#371985 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.164 H 286.3°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#371985
RGBrgb(55, 25, 133)
HSLhsl(257, 68%, 31%)
HSVhsv(257, 81%, 52%)
CMYKcmyk(58.6%, 81.2%, 0%, 47.8%)
CIE-LABlab(20.83, 42.04, -54.71)
CIE-LCHlch(20.83, 68.99, 307.54°)
OKLaboklab(33.65% 0.0462 -0.1575)
OKLCHoklch(33.65% 0.164 286.3)
XYZxyz(6.1555, 3.2006, 22.4792)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371985 #678519
analogous
#193185 #371985 #6D1985
triadic
#371985 #853719 #198537
tetradic
#371985 #851931 #678519 #19856D
square
#371985 #851931 #678519 #19856D
split-complementary
#371985 #856D19 #318519
monochromatic
#0C061E #220F51 #371985 #4C23B9 #693EDB

Accessibility & contrast

On white

12.80
#371985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371985
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371985#FFFFFF#000000##FFFFFF
##3719851.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#10394F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371985;
/* rgb */ color: rgb(55, 25, 133);
/* oklch */ color: oklch(33.7% 0.164 286.3);
Tailwind
colors: {
  custom: {
    50: '#785aaa',
    500: '#371985',
    950: '#000000',
  },
}
SCSS
$custom: #371985;
$custom-light: #785aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#371985",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 256.667,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33654,
    "c": 0.16417,
    "h": 286.3
  },
  "luminance": 0.03201
}

Semantic roles & 50–950 ramp

primary
#371985
secondary
#97B941
accent
#EB3DBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371985

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

Preview Lab → · Contrast checker → · Palette generator →

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