#371F8D#371F8D

#371F8D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.168 H 283.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#371F8D
RGBrgb(55, 31, 141)
HSLhsl(253, 64%, 34%)
HSVhsv(253, 78%, 55%)
CMYKcmyk(61%, 78%, 0%, 44.7%)
CIE-LABlab(22.71, 41.46, -56.63)
CIE-LCHlch(22.71, 70.18, 306.21°)
OKLaboklab(35.21% 0.0396 -0.1632)
OKLCHoklch(35.21% 0.168 283.6)
XYZxyz(6.8718, 3.7148, 25.5491)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F8D #758D1F
analogous
#1F3E8D #371F8D #6E1F8D
triadic
#371F8D #8D371F #1F8D37
tetradic
#371F8D #8D1F3E #758D1F #1F8D6E
square
#371F8D #8D1F3E #758D1F #1F8D6E
split-complementary
#371F8D #8D6E1F #3E8D1F
monochromatic
#100929 #23145B #371F8D #4B2ABF #6C4ED8

Accessibility & contrast

On white

12.05
#371F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371F8D
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F8D#FFFFFF#000000##FFFFFF
##371F8D1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #371f8d;
/* rgb */ color: rgb(55, 31, 141);
/* oklch */ color: oklch(35.2% 0.168 283.6);
Tailwind
colors: {
  custom: {
    50: '#795eaf',
    500: '#371f8d',
    950: '#000000',
  },
}
SCSS
$custom: #371f8d;
$custom-light: #795eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#371f8d",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 253.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35214,
    "c": 0.16795,
    "h": 283.6
  },
  "luminance": 0.03715
}

Semantic roles & 50–950 ramp

primary
#371F8D
secondary
#A3BB4D
accent
#E741C3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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