#371F8E#371F8E

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

Color values

HEX#371F8E
RGBrgb(55, 31, 142)
HSLhsl(253, 64%, 34%)
HSVhsv(253, 78%, 56%)
CMYKcmyk(61.3%, 78.2%, 0%, 44.3%)
CIE-LABlab(22.81, 41.77, -57.08)
CIE-LCHlch(22.81, 70.73, 306.20°)
OKLaboklab(35.32% 0.0393 -0.1645)
OKLCHoklch(35.32% 0.169 283.4)
XYZxyz(6.9465, 3.7447, 25.9427)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F8E #768E1F
analogous
#1F3F8E #371F8E #6F1F8E
triadic
#371F8E #8E371F #1F8E37
tetradic
#371F8E #8E1F3F #768E1F #1F8E6F
square
#371F8E #8E1F3F #768E1F #1F8E6F
split-complementary
#371F8E #8E6F1F #3F8E1F
monochromatic
#10092A #24145C #371F8E #4A2AC0 #6D4FD9

Accessibility & contrast

On white

12.01
#371F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#371F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F8E
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F8E#FFFFFF#000000##FFFFFF
##371F8E1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371f8e;
/* rgb */ color: rgb(55, 31, 142);
/* oklch */ color: oklch(35.3% 0.169 283.4);
Tailwind
colors: {
  custom: {
    50: '#795eb0',
    500: '#371f8e',
    950: '#000000',
  },
}
SCSS
$custom: #371f8e;
$custom-light: #795eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#371f8e",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 252.973,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35318,
    "c": 0.16917,
    "h": 283.4
  },
  "luminance": 0.03745
}

Semantic roles & 50–950 ramp

primary
#371F8E
secondary
#A4BB4D
accent
#E741C3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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