#371BA7#371BA7

#371BA7 is a dark, highly saturated violet. Relative luminance 0.044; OKLCH L 37.6% C 0.202 H 279.6°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#371BA7
RGBrgb(55, 27, 167)
HSLhsl(252, 72%, 38%)
HSVhsv(252, 84%, 65%)
CMYKcmyk(67.1%, 83.8%, 0%, 34.5%)
CIE-LABlab(24.91, 51.07, -68.94)
CIE-LCHlch(24.91, 85.80, 306.53°)
OKLaboklab(37.58% 0.0337 -0.199)
OKLCHoklch(37.58% 0.202 279.6)
XYZxyz(8.9403, 4.3854, 36.9270)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371BA7 #8BA71B
analogous
#1B45A7 #371BA7 #7D1BA7
triadic
#371BA7 #A7371B #1BA737
tetradic
#371BA7 #A71B45 #8BA71B #1BA77D
square
#371BA7 #A71B45 #8BA71B #1BA77D
split-complementary
#371BA7 #A77D1B #45A71B
monochromatic
#140A3E #261272 #371BA7 #4824DC #7458E4

Accessibility & contrast

On white

11.19
#371BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#371BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371BA7
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371BA7#FFFFFF#000000##FFFFFF
##371BA71.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0036A5
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #371ba7;
/* rgb */ color: rgb(55, 27, 167);
/* oklch */ color: oklch(37.6% 0.202 279.6);
Tailwind
colors: {
  custom: {
    50: '#7f5ec3',
    500: '#371ba7',
    950: '#000000',
  },
}
SCSS
$custom: #371ba7;
$custom-light: #7f5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#371ba7",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 252,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37583,
    "c": 0.20189,
    "h": 279.6
  },
  "luminance": 0.04386
}

Semantic roles & 50–950 ramp

primary
#371BA7
secondary
#B1C856
accent
#EF39CA
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #371BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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