#371CA8#371CA8

#371CA8 is a dark, highly saturated violet. Relative luminance 0.045; OKLCH L 37.8% C 0.202 H 279.4°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#371CA8
RGBrgb(55, 28, 168)
HSLhsl(252, 71%, 38%)
HSVhsv(252, 83%, 66%)
CMYKcmyk(67.3%, 83.3%, 0%, 34.1%)
CIE-LABlab(25.17, 50.94, -69.12)
CIE-LCHlch(25.17, 85.86, 306.39°)
OKLaboklab(37.79% 0.033 -0.1996)
OKLCHoklch(37.79% 0.202 279.4)
XYZxyz(9.0564, 4.4691, 37.4236)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371CA8 #8DA81C
analogous
#1C47A8 #371CA8 #7D1CA8
triadic
#371CA8 #A8371C #1CA837
tetradic
#371CA8 #A81C47 #8DA81C #1CA87D
square
#371CA8 #A81C47 #8DA81C #1CA87D
split-complementary
#371CA8 #A87D1C #47A81C
monochromatic
#150B3F #261374 #371CA8 #4926DB #755BE4

Accessibility & contrast

On white

11.09
#371CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#371CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371CA8
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371CA8#FFFFFF#000000##FFFFFF
##371CA81.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004864
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #371ca8;
/* rgb */ color: rgb(55, 28, 168);
/* oklch */ color: oklch(37.8% 0.202 279.4);
Tailwind
colors: {
  custom: {
    50: '#7f5ec3',
    500: '#371ca8',
    950: '#000000',
  },
}
SCSS
$custom: #371ca8;
$custom-light: #7f5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#371ca8",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 168
  },
  "hsl": {
    "h": 251.571,
    "s": 71.429,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37794,
    "c": 0.20228,
    "h": 279.4
  },
  "luminance": 0.0447
}

Semantic roles & 50–950 ramp

primary
#371CA8
secondary
#B2C758
accent
#EE3ACB
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #371CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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