#371D90#371D90

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

Color values

HEX#371D90
RGBrgb(55, 29, 144)
HSLhsl(254, 66%, 34%)
HSVhsv(254, 80%, 56%)
CMYKcmyk(61.8%, 79.9%, 0%, 43.5%)
CIE-LABlab(22.67, 43.38, -58.55)
CIE-LCHlch(22.67, 72.87, 306.54°)
OKLaboklab(35.28% 0.0401 -0.1688)
OKLCHoklch(35.28% 0.174 283.4)
XYZxyz(7.0474, 3.7041, 26.7237)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D90 #76901D
analogous
#1D3D90 #371D90 #711D90
triadic
#371D90 #90371D #1D9037
tetradic
#371D90 #901D3D #76901D #1D9071
square
#371D90 #901D3D #76901D #1D9071
split-complementary
#371D90 #90711D #3D901D
monochromatic
#10082A #24135D #371D90 #4A27C3 #6D4CDB

Accessibility & contrast

On white

12.06
#371D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#371D90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D90
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D90#FFFFFF#000000##FFFFFF
##371D901.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371d90;
/* rgb */ color: rgb(55, 29, 144);
/* oklch */ color: oklch(35.3% 0.174 283.4);
Tailwind
colors: {
  custom: {
    50: '#7a5db2',
    500: '#371d90',
    950: '#000000',
  },
}
SCSS
$custom: #371d90;
$custom-light: #7a5db2;
$custom-dark: #000000;
JSON
{
  "hex": "#371d90",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 144
  },
  "hsl": {
    "h": 253.565,
    "s": 66.474,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35282,
    "c": 0.17351,
    "h": 283.4
  },
  "luminance": 0.03705
}

Semantic roles & 50–950 ramp

primary
#371D90
secondary
#A4BD4B
accent
#E93EC3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371D90

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

Preview Lab → · Contrast checker → · Palette generator →

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