#371EAE#371EAE

#371EAE is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 38.7% C 0.208 H 278.4°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#371EAE
RGBrgb(55, 30, 174)
HSLhsl(250, 71%, 40%)
HSVhsv(250, 83%, 68%)
CMYKcmyk(68.4%, 82.8%, 0%, 31.8%)
CIE-LABlab(26.15, 51.82, -71.11)
CIE-LCHlch(26.15, 87.99, 306.08°)
OKLaboklab(38.67% 0.0302 -0.2054)
OKLCHoklch(38.67% 0.208 278.4)
XYZxyz(9.6773, 4.7959, 40.4519)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371EAE #95AE1E
analogous
#1E4DAE #371EAE #7F1EAE
triadic
#371EAE #AE371E #1EAE37
tetradic
#371EAE #AE1E4D #95AE1E #1EAE7F
square
#371EAE #AE1E4D #95AE1E #1EAE7F
split-complementary
#371EAE #AE7F1E #4DAE1E
monochromatic
#160C46 #27157A #371EAE #4C2EDB #7962E4

Accessibility & contrast

On white

10.72
#371EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#371EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371EAE
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371EAE#FFFFFF#000000##FFFFFF
##371EAE1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B2
Deuteranopia (green-blind)
#0038AC
Tritanopia (blue-blind)
#004C68
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #371eae;
/* rgb */ color: rgb(55, 30, 174);
/* oklch */ color: oklch(38.7% 0.208 278.4);
Tailwind
colors: {
  custom: {
    50: '#8060c8',
    500: '#371eae',
    950: '#000000',
  },
}
SCSS
$custom: #371eae;
$custom-light: #8060c8;
$custom-dark: #000000;
JSON
{
  "hex": "#371eae",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 174
  },
  "hsl": {
    "h": 250.417,
    "s": 70.588,
    "l": 40
  },
  "oklch": {
    "l": 0.38669,
    "c": 0.20761,
    "h": 278.4
  },
  "luminance": 0.04797
}

Semantic roles & 50–950 ramp

primary
#371EAE
secondary
#B6C95F
accent
#ED3ACE
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #371EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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