#371AB4#371AB4

#371AB4 is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 39.0% C 0.217 H 277.9°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#371AB4
RGBrgb(55, 26, 180)
HSLhsl(251, 75%, 40%)
HSVhsv(251, 86%, 71%)
CMYKcmyk(69.4%, 85.6%, 0%, 29.4%)
CIE-LABlab(26.29, 55.17, -74.47)
CIE-LCHlch(26.29, 92.68, 306.53°)
OKLaboklab(38.97% 0.0297 -0.2151)
OKLCHoklch(38.97% 0.217 277.9)
XYZxyz(10.1805, 4.8454, 43.5699)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371AB4 #97B41A
analogous
#1A4AB4 #371AB4 #841AB4
triadic
#371AB4 #B4371A #1AB437
tetradic
#371AB4 #B41A4A #97B41A #1AB484
square
#371AB4 #B41A4A #97B41A #1AB484
split-complementary
#371AB4 #B4841A #4AB41A
monochromatic
#160B49 #27127F #371AB4 #4D2BE0 #7A60E8

Accessibility & contrast

On white

10.66
#371AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#371AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371AB4
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371AB4#FFFFFF#000000##FFFFFF
##371AB41.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371ab4;
/* rgb */ color: rgb(55, 26, 180);
/* oklch */ color: oklch(39.0% 0.217 277.9);
Tailwind
colors: {
  custom: {
    50: '#815ecc',
    500: '#371ab4',
    950: '#000000',
  },
}
SCSS
$custom: #371ab4;
$custom-light: #815ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#371ab4",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 251.299,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38971,
    "c": 0.21711,
    "h": 277.9
  },
  "luminance": 0.04846
}

Semantic roles & 50–950 ramp

primary
#371AB4
secondary
#B8CC5D
accent
#F136CE
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #371AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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