#371DA7#371DA7

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

Color values

HEX#371DA7
RGBrgb(55, 29, 167)
HSLhsl(251, 70%, 38%)
HSVhsv(251, 83%, 65%)
CMYKcmyk(67.1%, 82.6%, 0%, 34.5%)
CIE-LABlab(25.20, 50.21, -68.46)
CIE-LCHlch(25.20, 84.90, 306.26°)
OKLaboklab(37.78% 0.0329 -0.1977)
OKLCHoklch(37.78% 0.2 279.4)
XYZxyz(8.9877, 4.4802, 36.9429)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371DA7 #8DA71D
analogous
#1D48A7 #371DA7 #7C1DA7
triadic
#371DA7 #A7371D #1DA737
tetradic
#371DA7 #A71D48 #8DA71D #1DA77C
square
#371DA7 #A71D48 #8DA71D #1DA77C
split-complementary
#371DA7 #A77C1D #48A71D
monochromatic
#150B3F #261473 #371DA7 #4928DA #755CE3

Accessibility & contrast

On white

11.07
#371DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371DA7
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371DA7#FFFFFF#000000##FFFFFF
##371DA71.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371da7;
/* rgb */ color: rgb(55, 29, 167);
/* oklch */ color: oklch(37.8% 0.200 279.4);
Tailwind
colors: {
  custom: {
    50: '#7f5fc2',
    500: '#371da7',
    950: '#000000',
  },
}
SCSS
$custom: #371da7;
$custom-light: #7f5fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#371da7",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 167
  },
  "hsl": {
    "h": 251.304,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37784,
    "c": 0.20038,
    "h": 279.4
  },
  "luminance": 0.04481
}

Semantic roles & 50–950 ramp

primary
#371DA7
secondary
#B2C759
accent
#ED3BCC
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #371DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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