#371DA8#371DA8

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

Color values

HEX#371DA8
RGBrgb(55, 29, 168)
HSLhsl(251, 71%, 39%)
HSVhsv(251, 83%, 66%)
CMYKcmyk(67.3%, 82.7%, 0%, 34.1%)
CIE-LABlab(25.31, 50.50, -68.88)
CIE-LCHlch(25.31, 85.41, 306.25°)
OKLaboklab(37.9% 0.0325 -0.1989)
OKLCHoklch(37.9% 0.202 279.3)
XYZxyz(9.0805, 4.5173, 37.4316)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371DA8 #8EA81D
analogous
#1D48A8 #371DA8 #7C1DA8
triadic
#371DA8 #A8371D #1DA837
tetradic
#371DA8 #A81D48 #8EA81D #1DA87C
square
#371DA8 #A81D48 #8EA81D #1DA87C
split-complementary
#371DA8 #A87C1D #48A81D
monochromatic
#150B40 #261474 #371DA8 #4928DA #765CE3

Accessibility & contrast

On white

11.03
#371DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371DA8
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371DA8#FFFFFF#000000##FFFFFF
##371DA81.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371da8;
/* rgb */ color: rgb(55, 29, 168);
/* oklch */ color: oklch(37.9% 0.202 279.3);
Tailwind
colors: {
  custom: {
    50: '#7f5fc3',
    500: '#371da8',
    950: '#000000',
  },
}
SCSS
$custom: #371da8;
$custom-light: #7f5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#371da8",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 168
  },
  "hsl": {
    "h": 251.223,
    "s": 70.558,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37896,
    "c": 0.20152,
    "h": 279.3
  },
  "luminance": 0.04518
}

Semantic roles & 50–950 ramp

primary
#371DA8
secondary
#B3C75A
accent
#ED3ACC
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #371DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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