#371CAD#371CAD

#371CAD is a dark, highly saturated violet. Relative luminance 0.047; OKLCH L 38.4% C 0.208 H 278.7°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#371CAD
RGBrgb(55, 28, 173)
HSLhsl(251, 72%, 39%)
HSVhsv(251, 84%, 68%)
CMYKcmyk(68.2%, 83.8%, 0%, 32.2%)
CIE-LABlab(25.74, 52.38, -71.18)
CIE-LCHlch(25.74, 88.38, 306.35°)
OKLaboklab(38.36% 0.0313 -0.2056)
OKLCHoklch(38.36% 0.208 278.7)
XYZxyz(9.5312, 4.6590, 39.9241)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371CAD #92AD1C
analogous
#1C4AAD #371CAD #7F1CAD
triadic
#371CAD #AD371C #1CAD37
tetradic
#371CAD #AD1C4A #92AD1C #1CAD7F
square
#371CAD #AD1C4A #92AD1C #1CAD7F
split-complementary
#371CAD #AD7F1C #4AAD1C
monochromatic
#160B44 #261378 #371CAD #4B2ADC #775EE5

Accessibility & contrast

On white

10.87
#371CAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#371CAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371CAD
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371CAD#FFFFFF#000000##FFFFFF
##371CAD1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B1
Deuteranopia (green-blind)
#0037AB
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #371cad;
/* rgb */ color: rgb(55, 28, 173);
/* oklch */ color: oklch(38.4% 0.208 278.7);
Tailwind
colors: {
  custom: {
    50: '#805fc7',
    500: '#371cad',
    950: '#000000',
  },
}
SCSS
$custom: #371cad;
$custom-light: #805fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#371cad",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 173
  },
  "hsl": {
    "h": 251.172,
    "s": 72.139,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38357,
    "c": 0.20794,
    "h": 278.7
  },
  "luminance": 0.0466
}

Semantic roles & 50–950 ramp

primary
#371CAD
secondary
#B5C95C
accent
#EF39CD
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #371CAD

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

Preview Lab → · Contrast checker → · Palette generator →

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