#371BA8#371BA8

#371BA8 is a dark, highly saturated violet. Relative luminance 0.044; OKLCH L 37.7% C 0.203 H 279.5°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#371BA8
RGBrgb(55, 27, 168)
HSLhsl(252, 72%, 38%)
HSVhsv(252, 84%, 66%)
CMYKcmyk(67.3%, 83.9%, 0%, 34.1%)
CIE-LABlab(25.02, 51.36, -69.36)
CIE-LCHlch(25.02, 86.30, 306.52°)
OKLaboklab(37.7% 0.0334 -0.2002)
OKLCHoklch(37.7% 0.203 279.5)
XYZxyz(9.0331, 4.4225, 37.4158)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371BA8 #8CA81B
analogous
#1B45A8 #371BA8 #7D1BA8
triadic
#371BA8 #A8371B #1BA837
tetradic
#371BA8 #A81B45 #8CA81B #1BA87D
square
#371BA8 #A81B45 #8CA81B #1BA87D
split-complementary
#371BA8 #A87D1B #45A81B
monochromatic
#140A3F #261373 #371BA8 #4924DC #7559E4

Accessibility & contrast

On white

11.14
#371BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371BA8
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371BA8#FFFFFF#000000##FFFFFF
##371BA81.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371ba8;
/* rgb */ color: rgb(55, 27, 168);
/* oklch */ color: oklch(37.7% 0.203 279.5);
Tailwind
colors: {
  custom: {
    50: '#7f5ec3',
    500: '#371ba8',
    950: '#000000',
  },
}
SCSS
$custom: #371ba8;
$custom-light: #7f5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#371ba8",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 168
  },
  "hsl": {
    "h": 251.915,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37696,
    "c": 0.20301,
    "h": 279.5
  },
  "luminance": 0.04423
}

Semantic roles & 50–950 ramp

primary
#371BA8
secondary
#B1C857
accent
#EF39CB
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #371BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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