#371F9E#371F9E

#371F9E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.188 H 280.6°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#371F9E
RGBrgb(55, 31, 158)
HSLhsl(251, 67%, 37%)
HSVhsv(251, 80%, 62%)
CMYKcmyk(65.2%, 80.4%, 0%, 38%)
CIE-LABlab(24.51, 46.62, -64.12)
CIE-LCHlch(24.51, 79.28, 306.02°)
OKLaboklab(37.02% 0.0347 -0.1851)
OKLCHoklch(37.02% 0.188 280.6)
XYZxyz(8.2351, 4.2602, 32.7294)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F9E #869E1F
analogous
#1F469E #371F9E #771F9E
triadic
#371F9E #9E371F #1F9E37
tetradic
#371F9E #9E1F46 #869E1F #1F9E77
square
#371F9E #9E1F46 #869E1F #1F9E77
split-complementary
#371F9E #9E771F #469E1F
monochromatic
#130B38 #25156B #371F9E #4929D1 #7259DE

Accessibility & contrast

On white

11.34
#371F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#371F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F9E
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F9E#FFFFFF#000000##FFFFFF
##371F9E1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA2
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #371f9e;
/* rgb */ color: rgb(55, 31, 158);
/* oklch */ color: oklch(37.0% 0.188 280.6);
Tailwind
colors: {
  custom: {
    50: '#7d5fbc',
    500: '#371f9e',
    950: '#000000',
  },
}
SCSS
$custom: #371f9e;
$custom-light: #7d5fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#371f9e",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 251.339,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37015,
    "c": 0.1883,
    "h": 280.6
  },
  "luminance": 0.04261
}

Semantic roles & 50–950 ramp

primary
#371F9E
secondary
#AEC256
accent
#EA3ECA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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