#371B4F#371B4F

#371B4F is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.9% C 0.094 H 306.2°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#371B4F
RGBrgb(55, 27, 79)
HSLhsl(272, 49%, 21%)
HSVhsv(272, 66%, 31%)
CMYKcmyk(30.4%, 65.8%, 0%, 69%)
CIE-LABlab(16.31, 25.14, -26.77)
CIE-LCHlch(16.31, 36.72, 313.20°)
OKLaboklab(28.93% 0.0554 -0.0756)
OKLCHoklch(28.93% 0.094 306.2)
XYZxyz(3.3785, 2.1606, 7.6347)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B4F #334F1B
analogous
#1D1B4F #371B4F #4F1B4D
triadic
#371B4F #4F371B #1B4F37
tetradic
#371B4F #4F1D1B #334F1B #1B4D4F
square
#371B4F #4F1D1B #334F1B #1B4D4F
split-complementary
#371B4F #4D4F1B #1B4F1D
monochromatic
#100817 #170B21 #371B4F #572B7D #773AAA

Accessibility & contrast

On white

14.66
#371B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#371B4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B4F
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B4F#FFFFFF#000000##FFFFFF
##371B4F1.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042751
Deuteranopia (green-blind)
#11294E
Tritanopia (blue-blind)
#332532
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #371b4f;
/* rgb */ color: rgb(55, 27, 79);
/* oklch */ color: oklch(28.9% 0.094 306.2);
Tailwind
colors: {
  custom: {
    50: '#705981',
    500: '#371b4f',
    950: '#000000',
  },
}
SCSS
$custom: #371b4f;
$custom-light: #705981;
$custom-dark: #000000;
JSON
{
  "hex": "#371b4f",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 79
  },
  "hsl": {
    "h": 272.308,
    "s": 49.057,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28928,
    "c": 0.09369,
    "h": 306.2
  },
  "luminance": 0.02161
}

Semantic roles & 50–950 ramp

primary
#371B4F
secondary
#608541
accent
#D94F8F
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #371B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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