#371F7F#371F7F

#371F7F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.151 H 286.7°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#371F7F
RGBrgb(55, 31, 127)
HSLhsl(255, 61%, 31%)
HSVhsv(255, 76%, 50%)
CMYKcmyk(56.7%, 75.6%, 0%, 50.2%)
CIE-LABlab(21.30, 37.15, -50.15)
CIE-LCHlch(21.30, 62.41, 306.53°)
OKLaboklab(33.8% 0.0433 -0.1443)
OKLCHoklch(33.8% 0.151 286.7)
XYZxyz(5.8952, 3.3242, 20.4056)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F7F #677F1F
analogous
#1F377F #371F7F #671F7F
triadic
#371F7F #7F371F #1F7F37
tetradic
#371F7F #7F1F37 #677F1F #1F7F67
square
#371F7F #7F1F37 #677F1F #1F7F67
split-complementary
#371F7F #7F671F #377F1F
monochromatic
#0C071D #22134E #371F7F #4C2BB0 #6946D2

Accessibility & contrast

On white

12.61
#371F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#371F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F7F
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F7F#FFFFFF#000000##FFFFFF
##371F7F1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#18394D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371f7f;
/* rgb */ color: rgb(55, 31, 127);
/* oklch */ color: oklch(33.8% 0.151 286.7);
Tailwind
colors: {
  custom: {
    50: '#765da5',
    500: '#371f7f',
    950: '#000000',
  },
}
SCSS
$custom: #371f7f;
$custom-light: #765da5;
$custom-dark: #000000;
JSON
{
  "hex": "#371f7f",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 255,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33797,
    "c": 0.15063,
    "h": 286.7
  },
  "luminance": 0.03325
}

Semantic roles & 50–950 ramp

primary
#371F7F
secondary
#97B248
accent
#E444BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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