#371CB4#371CB4

#371CB4 is a dark, highly saturated violet. Relative luminance 0.049; OKLCH L 39.2% C 0.216 H 277.7°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#371CB4
RGBrgb(55, 28, 180)
HSLhsl(251, 73%, 41%)
HSVhsv(251, 84%, 71%)
CMYKcmyk(69.4%, 84.4%, 0%, 29.4%)
CIE-LABlab(26.55, 54.38, -74.03)
CIE-LCHlch(26.55, 91.86, 306.30°)
OKLaboklab(39.15% 0.0291 -0.2138)
OKLCHoklch(39.15% 0.216 277.7)
XYZxyz(10.2264, 4.9371, 43.5852)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371CB4 #99B41C
analogous
#1C4DB4 #371CB4 #831CB4
triadic
#371CB4 #B4371C #1CB437
tetradic
#371CB4 #B41C4D #99B41C #1CB483
square
#371CB4 #B41C4D #99B41C #1CB483
split-complementary
#371CB4 #B4831C #4DB41C
monochromatic
#170C4A #27147F #371CB4 #4E2FDF #7B64E7

Accessibility & contrast

On white

10.57
#371CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#371CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371CB4
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371CB4#FFFFFF#000000##FFFFFF
##371CB41.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B8
Deuteranopia (green-blind)
#0038B1
Tritanopia (blue-blind)
#004D6B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #371cb4;
/* rgb */ color: rgb(55, 28, 180);
/* oklch */ color: oklch(39.2% 0.216 277.7);
Tailwind
colors: {
  custom: {
    50: '#815fcc',
    500: '#371cb4',
    950: '#000000',
  },
}
SCSS
$custom: #371cb4;
$custom-light: #815fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#371cb4",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 250.658,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39152,
    "c": 0.21578,
    "h": 277.7
  },
  "luminance": 0.04938
}

Semantic roles & 50–950 ramp

primary
#371CB4
secondary
#B9CC60
accent
#F038CF
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #371CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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