#371CA9#371CA9

#371CA9 is a dark, highly saturated violet. Relative luminance 0.045; OKLCH L 37.9% C 0.203 H 279.2°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#371CA9
RGBrgb(55, 28, 169)
HSLhsl(251, 72%, 39%)
HSVhsv(251, 83%, 66%)
CMYKcmyk(67.5%, 83.4%, 0%, 33.7%)
CIE-LABlab(25.28, 51.22, -69.54)
CIE-LCHlch(25.28, 86.37, 306.38°)
OKLaboklab(37.91% 0.0326 -0.2008)
OKLCHoklch(37.91% 0.203 279.2)
XYZxyz(9.1499, 4.5065, 37.9161)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371CA9 #8EA91C
analogous
#1C47A9 #371CA9 #7D1CA9
triadic
#371CA9 #A9371C #1CA937
tetradic
#371CA9 #A91C47 #8EA91C #1CA97D
square
#371CA9 #A91C47 #8EA91C #1CA97D
split-complementary
#371CA9 #A97D1C #47A91C
monochromatic
#150B40 #261374 #371CA9 #4927DB #765BE4

Accessibility & contrast

On white

11.04
#371CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#371CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371CA9
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371CA9#FFFFFF#000000##FFFFFF
##371CA91.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AD
Deuteranopia (green-blind)
#0036A7
Tritanopia (blue-blind)
#004965
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #371ca9;
/* rgb */ color: rgb(55, 28, 169);
/* oklch */ color: oklch(37.9% 0.203 279.2);
Tailwind
colors: {
  custom: {
    50: '#7f5ec4',
    500: '#371ca9',
    950: '#000000',
  },
}
SCSS
$custom: #371ca9;
$custom-light: #7f5ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#371ca9",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 169
  },
  "hsl": {
    "h": 251.489,
    "s": 71.574,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37907,
    "c": 0.20341,
    "h": 279.2
  },
  "luminance": 0.04507
}

Semantic roles & 50–950 ramp

primary
#371CA9
secondary
#B3C859
accent
#EE39CC
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #371CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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