#371BA6#371BA6

#371BA6 is a dark, highly saturated violet. Relative luminance 0.043; OKLCH L 37.5% C 0.201 H 279.8°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#371BA6
RGBrgb(55, 27, 166)
HSLhsl(252, 72%, 38%)
HSVhsv(252, 84%, 65%)
CMYKcmyk(66.9%, 83.7%, 0%, 34.9%)
CIE-LABlab(24.79, 50.78, -68.53)
CIE-LCHlch(24.79, 85.29, 306.54°)
OKLaboklab(37.47% 0.034 -0.1978)
OKLCHoklch(37.47% 0.201 279.8)
XYZxyz(8.8482, 4.3485, 36.4421)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371BA6 #8AA61B
analogous
#1B45A6 #371BA6 #7C1BA6
triadic
#371BA6 #A6371B #1BA637
tetradic
#371BA6 #A61B45 #8AA61B #1BA67C
square
#371BA6 #A61B45 #8AA61B #1BA67C
split-complementary
#371BA6 #A67C1B #45A61B
monochromatic
#140A3D #261271 #371BA6 #4824DB #7458E4

Accessibility & contrast

On white

11.23
#371BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#371BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371BA6
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371BA6#FFFFFF#000000##FFFFFF
##371BA61.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004763
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #371ba6;
/* rgb */ color: rgb(55, 27, 166);
/* oklch */ color: oklch(37.5% 0.201 279.8);
Tailwind
colors: {
  custom: {
    50: '#7e5ec2',
    500: '#371ba6',
    950: '#000000',
  },
}
SCSS
$custom: #371ba6;
$custom-light: #7e5ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#371ba6",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 166
  },
  "hsl": {
    "h": 252.086,
    "s": 72.021,
    "l": 37.843
  },
  "oklch": {
    "l": 0.3747,
    "c": 0.20075,
    "h": 279.8
  },
  "luminance": 0.04349
}

Semantic roles & 50–950 ramp

primary
#371BA6
secondary
#B0C756
accent
#EF39CA
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #371BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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