#371C90#371C90

#371C90 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.174 H 283.5°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#371C90
RGBrgb(55, 28, 144)
HSLhsl(254, 67%, 34%)
HSVhsv(254, 81%, 56%)
CMYKcmyk(61.8%, 80.6%, 0%, 43.5%)
CIE-LABlab(22.50, 43.87, -58.83)
CIE-LCHlch(22.50, 73.39, 306.71°)
OKLaboklab(35.17% 0.0407 -0.1696)
OKLCHoklch(35.17% 0.174 283.5)
XYZxyz(7.0233, 3.6559, 26.7157)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C90 #75901C
analogous
#1C3B90 #371C90 #711C90
triadic
#371C90 #90371C #1C9037
tetradic
#371C90 #901C3B #75901C #1C9071
square
#371C90 #901C3B #75901C #1C9071
split-complementary
#371C90 #90711C #3B901C
monochromatic
#10082A #23125D #371C90 #4B26C3 #6C4ADC

Accessibility & contrast

On white

12.13
#371C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#371C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C90
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C90#FFFFFF#000000##FFFFFF
##371C901.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#00328E
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #371c90;
/* rgb */ color: rgb(55, 28, 144);
/* oklch */ color: oklch(35.2% 0.174 283.5);
Tailwind
colors: {
  custom: {
    50: '#7a5db2',
    500: '#371c90',
    950: '#000000',
  },
}
SCSS
$custom: #371c90;
$custom-light: #7a5db2;
$custom-dark: #000000;
JSON
{
  "hex": "#371c90",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 144
  },
  "hsl": {
    "h": 253.966,
    "s": 67.442,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35165,
    "c": 0.17443,
    "h": 283.5
  },
  "luminance": 0.03656
}

Semantic roles & 50–950 ramp

primary
#371C90
secondary
#A3BE4A
accent
#EA3DC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371C90

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

Preview Lab → · Contrast checker → · Palette generator →

#371C90 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva