#371F6F#371F6F

#371F6F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.130 H 291.1°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#371F6F
RGBrgb(55, 31, 111)
HSLhsl(258, 56%, 28%)
HSVhsv(258, 72%, 44%)
CMYKcmyk(50.5%, 72.1%, 0%, 56.5%)
CIE-LABlab(19.80, 32.21, -42.35)
CIE-LCHlch(19.80, 53.20, 307.25°)
OKLaboklab(32.27% 0.0468 -0.1214)
OKLCHoklch(32.27% 0.13 291.1)
XYZxyz(4.9340, 2.9397, 15.3433)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F6F #576F1F
analogous
#1F2F6F #371F6F #5F1F6F
triadic
#371F6F #6F371F #1F6F37
tetradic
#371F6F #6F1F2F #576F1F #1F6F5F
square
#371F6F #6F1F2F #576F1F #1F6F5F
split-complementary
#371F6F #6F5F1F #2F6F1F
monochromatic
#0C0718 #1F123F #371F6F #4F2C9F #693FC9

Accessibility & contrast

On white

13.22
#371F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#371F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F6F
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F6F#FFFFFF#000000##FFFFFF
##371F6F1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#253344
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371f6f;
/* rgb */ color: rgb(55, 31, 111);
/* oklch */ color: oklch(32.3% 0.130 291.1);
Tailwind
colors: {
  custom: {
    50: '#745d99',
    500: '#371f6f',
    950: '#000000',
  },
}
SCSS
$custom: #371f6f;
$custom-light: #745d99;
$custom-dark: #000000;
JSON
{
  "hex": "#371f6f",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 258,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32271,
    "c": 0.1301,
    "h": 291.1
  },
  "luminance": 0.0294
}

Semantic roles & 50–950 ramp

primary
#371F6F
secondary
#87A347
accent
#E048B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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