#371F8F#371F8F

#371F8F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.170 H 283.3°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#371F8F
RGBrgb(55, 31, 143)
HSLhsl(253, 64%, 34%)
HSVhsv(253, 78%, 56%)
CMYKcmyk(61.5%, 78.3%, 0%, 43.9%)
CIE-LABlab(22.91, 42.07, -57.53)
CIE-LCHlch(22.91, 71.27, 306.18°)
OKLaboklab(35.42% 0.0391 -0.1658)
OKLCHoklch(35.42% 0.17 283.3)
XYZxyz(7.0219, 3.7749, 26.3399)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F8F #778F1F
analogous
#1F3F8F #371F8F #6F1F8F
triadic
#371F8F #8F371F #1F8F37
tetradic
#371F8F #8F1F3F #778F1F #1F8F6F
square
#371F8F #8F1F3F #778F1F #1F8F6F
split-complementary
#371F8F #8F6F1F #3F8F1F
monochromatic
#10092A #24145D #371F8F #4A2AC1 #6D4FD9

Accessibility & contrast

On white

11.97
#371F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#371F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F8F
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F8F#FFFFFF#000000##FFFFFF
##371F8F1.0011.971.7611.97
#FFFFFF11.971.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #371f8f;
/* rgb */ color: rgb(55, 31, 143);
/* oklch */ color: oklch(35.4% 0.170 283.3);
Tailwind
colors: {
  custom: {
    50: '#795eb1',
    500: '#371f8f',
    950: '#000000',
  },
}
SCSS
$custom: #371f8f;
$custom-light: #795eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#371f8f",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 252.857,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35422,
    "c": 0.17039,
    "h": 283.3
  },
  "luminance": 0.03775
}

Semantic roles & 50–950 ramp

primary
#371F8F
secondary
#A4BC4E
accent
#E740C4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #371F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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