#371F9F#371F9F

#371F9F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.189 H 280.4°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#371F9F
RGBrgb(55, 31, 159)
HSLhsl(251, 67%, 37%)
HSVhsv(251, 81%, 62%)
CMYKcmyk(65.4%, 80.5%, 0%, 37.6%)
CIE-LABlab(24.62, 46.92, -64.55)
CIE-LCHlch(24.62, 79.81, 306.01°)
OKLaboklab(37.12% 0.0344 -0.1863)
OKLCHoklch(37.12% 0.189 280.4)
XYZxyz(8.3216, 4.2947, 33.1846)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F9F #879F1F
analogous
#1F479F #371F9F #771F9F
triadic
#371F9F #9F371F #1F9F37
tetradic
#371F9F #9F1F47 #879F1F #1F9F77
square
#371F9F #9F1F47 #879F1F #1F9F77
split-complementary
#371F9F #9F771F #479F1F
monochromatic
#140B39 #25156C #371F9F #4929D2 #735ADF

Accessibility & contrast

On white

11.30
#371F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#371F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F9F
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F9F#FFFFFF#000000##FFFFFF
##371F9F1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #371f9f;
/* rgb */ color: rgb(55, 31, 159);
/* oklch */ color: oklch(37.1% 0.189 280.4);
Tailwind
colors: {
  custom: {
    50: '#7d5fbd',
    500: '#371f9f',
    950: '#000000',
  },
}
SCSS
$custom: #371f9f;
$custom-light: #7d5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#371f9f",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 251.25,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37123,
    "c": 0.18947,
    "h": 280.4
  },
  "luminance": 0.04295
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #371F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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