#371FA6#371FA6

#371FA6 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.198 H 279.4°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#371FA6
RGBrgb(55, 31, 166)
HSLhsl(251, 69%, 39%)
HSVhsv(251, 81%, 65%)
CMYKcmyk(66.9%, 81.3%, 0%, 34.9%)
CIE-LABlab(25.40, 49.01, -67.53)
CIE-LCHlch(25.40, 83.44, 305.97°)
OKLaboklab(37.89% 0.0322 -0.195)
OKLCHoklch(37.89% 0.198 279.4)
XYZxyz(8.9463, 4.5446, 36.4747)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371FA6 #8EA61F
analogous
#1F4AA6 #371FA6 #7A1FA6
triadic
#371FA6 #A6371F #1FA637
tetradic
#371FA6 #A61F4A #8EA61F #1FA67A
square
#371FA6 #A61F4A #8EA61F #1FA67A
split-complementary
#371FA6 #A67A1F #4AA61F
monochromatic
#150C3F #261572 #371FA6 #492BD7 #765EE1

Accessibility & contrast

On white

11.00
#371FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#371FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371FA6
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371FA6#FFFFFF#000000##FFFFFF
##371FA61.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #371fa6;
/* rgb */ color: rgb(55, 31, 166);
/* oklch */ color: oklch(37.9% 0.198 279.4);
Tailwind
colors: {
  custom: {
    50: '#7e60c2',
    500: '#371fa6',
    950: '#000000',
  },
}
SCSS
$custom: #371fa6;
$custom-light: #7e60c2;
$custom-dark: #000000;
JSON
{
  "hex": "#371fa6",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 250.667,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37887,
    "c": 0.19764,
    "h": 279.4
  },
  "luminance": 0.04545
}

Semantic roles & 50–950 ramp

primary
#371FA6
secondary
#B3C55B
accent
#EB3CCC
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #371FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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