#371FA7#371FA7

#371FA7 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.199 H 279.2°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#371FA7
RGBrgb(55, 31, 167)
HSLhsl(251, 69%, 39%)
HSVhsv(251, 81%, 65%)
CMYKcmyk(67.1%, 81.4%, 0%, 34.5%)
CIE-LABlab(25.51, 49.31, -67.95)
CIE-LCHlch(25.51, 83.96, 305.97°)
OKLaboklab(38% 0.0319 -0.1962)
OKLCHoklch(38% 0.199 279.2)
XYZxyz(9.0384, 4.5815, 36.9597)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371FA7 #8FA71F
analogous
#1F4BA7 #371FA7 #7B1FA7
triadic
#371FA7 #A7371F #1FA737
tetradic
#371FA7 #A71F4B #8FA71F #1FA77B
square
#371FA7 #A71F4B #8FA71F #1FA77B
split-complementary
#371FA7 #A77B1F #4BA71F
monochromatic
#150C40 #261573 #371FA7 #4A2BD8 #765FE1

Accessibility & contrast

On white

10.96
#371FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#371FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371FA7
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371FA7#FFFFFF#000000##FFFFFF
##371FA71.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AB
Deuteranopia (green-blind)
#0037A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #371fa7;
/* rgb */ color: rgb(55, 31, 167);
/* oklch */ color: oklch(38.0% 0.199 279.2);
Tailwind
colors: {
  custom: {
    50: '#7e60c2',
    500: '#371fa7',
    950: '#000000',
  },
}
SCSS
$custom: #371fa7;
$custom-light: #7e60c2;
$custom-dark: #000000;
JSON
{
  "hex": "#371fa7",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 250.588,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37997,
    "c": 0.1988,
    "h": 279.2
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

primary
#371FA7
secondary
#B3C65C
accent
#EC3CCD
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #371FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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