#371978#371978

#371978 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.149 H 289.8°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#371978
RGBrgb(55, 25, 120)
HSLhsl(259, 66%, 28%)
HSVhsv(259, 79%, 47%)
CMYKcmyk(54.2%, 79.2%, 0%, 52.9%)
CIE-LABlab(19.49, 38.21, -48.66)
CIE-LCHlch(19.49, 61.86, 308.14°)
OKLaboklab(32.31% 0.0503 -0.1399)
OKLCHoklch(32.31% 0.149 289.8)
XYZxyz(5.3124, 2.8633, 18.0384)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371978 #5A7819
analogous
#192B78 #371978 #661978
triadic
#371978 #783719 #197837
tetradic
#371978 #78192B #5A7819 #197866
square
#371978 #78192B #5A7819 #197866
split-complementary
#371978 #786619 #2B7819
monochromatic
#0C0519 #200E45 #371978 #4E24AB #6836D5

Accessibility & contrast

On white

13.35
#371978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#371978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371978
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371978#FFFFFF#000000##FFFFFF
##3719781.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#1F3448
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #371978;
/* rgb */ color: rgb(55, 25, 120);
/* oklch */ color: oklch(32.3% 0.149 289.8);
Tailwind
colors: {
  custom: {
    50: '#7659a0',
    500: '#371978',
    950: '#000000',
  },
}
SCSS
$custom: #371978;
$custom-light: #7659a0;
$custom-dark: #000000;
JSON
{
  "hex": "#371978",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 258.947,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32312,
    "c": 0.14862,
    "h": 289.8
  },
  "luminance": 0.02864
}

Semantic roles & 50–950 ramp

primary
#371978
secondary
#8AAD40
accent
#E83FB3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #371978

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

Preview Lab → · Contrast checker → · Palette generator →

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