#371FA4#371FA4

#371FA4 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.195 H 279.7°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#371FA4
RGBrgb(55, 31, 164)
HSLhsl(251, 68%, 38%)
HSVhsv(251, 81%, 64%)
CMYKcmyk(66.5%, 81.1%, 0%, 35.7%)
CIE-LABlab(25.17, 48.42, -66.69)
CIE-LCHlch(25.17, 82.41, 305.98°)
OKLaboklab(37.67% 0.0328 -0.1925)
OKLCHoklch(37.67% 0.195 279.7)
XYZxyz(8.7642, 4.4718, 35.5161)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371FA4 #8CA41F
analogous
#1F49A4 #371FA4 #791FA4
triadic
#371FA4 #A4371F #1FA437
tetradic
#371FA4 #A41F49 #8CA41F #1FA479
square
#371FA4 #A41F49 #8CA41F #1FA479
split-complementary
#371FA4 #A4791F #49A41F
monochromatic
#140C3D #261571 #371FA4 #492AD7 #755DE0

Accessibility & contrast

On white

11.08
#371FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#371FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371FA4
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371FA4#FFFFFF#000000##FFFFFF
##371FA41.0011.081.8911.08
#FFFFFF11.081.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A8
Deuteranopia (green-blind)
#0036A2
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #371fa4;
/* rgb */ color: rgb(55, 31, 164);
/* oklch */ color: oklch(37.7% 0.195 279.7);
Tailwind
colors: {
  custom: {
    50: '#7e5fc0',
    500: '#371fa4',
    950: '#000000',
  },
}
SCSS
$custom: #371fa4;
$custom-light: #7e5fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#371fa4",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 164
  },
  "hsl": {
    "h": 250.827,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37668,
    "c": 0.19532,
    "h": 279.7
  },
  "luminance": 0.04473
}

Semantic roles & 50–950 ramp

primary
#371FA4
secondary
#B1C55A
accent
#EB3DCC
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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