#371E8F#371E8F

#371E8F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.171 H 283.4°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#371E8F
RGBrgb(55, 30, 143)
HSLhsl(253, 65%, 34%)
HSVhsv(253, 79%, 56%)
CMYKcmyk(61.5%, 79%, 0%, 43.9%)
CIE-LABlab(22.74, 42.58, -57.82)
CIE-LCHlch(22.74, 71.81, 306.37°)
OKLaboklab(35.3% 0.0397 -0.1667)
OKLCHoklch(35.3% 0.171 283.4)
XYZxyz(6.9962, 3.7235, 26.3313)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E8F #768F1E
analogous
#1E3E8F #371E8F #701E8F
triadic
#371E8F #8F371E #1E8F37
tetradic
#371E8F #8F1E3E #768F1E #1E8F70
square
#371E8F #8F1E3E #768F1E #1E8F70
split-complementary
#371E8F #8F701E #3E8F1E
monochromatic
#10092A #24135C #371E8F #4A29C2 #6D4EDA

Accessibility & contrast

On white

12.04
#371E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#371E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E8F
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E8F#FFFFFF#000000##FFFFFF
##371E8F1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371e8f;
/* rgb */ color: rgb(55, 30, 143);
/* oklch */ color: oklch(35.3% 0.171 283.4);
Tailwind
colors: {
  custom: {
    50: '#7a5eb1',
    500: '#371e8f',
    950: '#000000',
  },
}
SCSS
$custom: #371e8f;
$custom-light: #7a5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#371e8f",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 253.274,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35298,
    "c": 0.17136,
    "h": 283.4
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#371E8F
secondary
#A4BC4C
accent
#E840C3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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