#371B4B#371B4B

#371B4B is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.088 H 308.8°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#371B4B
RGBrgb(55, 27, 75)
HSLhsl(275, 47%, 20%)
HSVhsv(275, 64%, 29%)
CMYKcmyk(26.7%, 64%, 0%, 70.6%)
CIE-LABlab(16.02, 24.04, -24.49)
CIE-LCHlch(16.02, 34.31, 314.47°)
OKLaboklab(28.63% 0.0554 -0.0689)
OKLCHoklch(28.63% 0.088 308.8)
XYZxyz(3.2372, 2.1041, 6.8908)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B4B #2F4B1B
analogous
#1F1B4B #371B4B #4B1B47
triadic
#371B4B #4B371B #1B4B37
tetradic
#371B4B #4B1F1B #2F4B1B #1B474B
square
#371B4B #4B1F1B #2F4B1B #1B474B
split-complementary
#371B4B #474B1B #1B4B1F
monochromatic
#110817 #160B1E #371B4B #582B78 #793BA5

Accessibility & contrast

On white

14.78
#371B4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#371B4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B4B
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B4B#FFFFFF#000000##FFFFFF
##371B4B1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A274D
Deuteranopia (green-blind)
#15284A
Tritanopia (blue-blind)
#342430
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #371b4b;
/* rgb */ color: rgb(55, 27, 75);
/* oklch */ color: oklch(28.6% 0.088 308.8);
Tailwind
colors: {
  custom: {
    50: '#70597d',
    500: '#371b4b',
    950: '#000000',
  },
}
SCSS
$custom: #371b4b;
$custom-light: #70597d;
$custom-dark: #000000;
JSON
{
  "hex": "#371b4b",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 75
  },
  "hsl": {
    "h": 275,
    "s": 47.059,
    "l": 20
  },
  "oklch": {
    "l": 0.28629,
    "c": 0.08838,
    "h": 308.8
  },
  "luminance": 0.02104
}

Semantic roles & 50–950 ramp

primary
#371B4B
secondary
#5C8141
accent
#D75189
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #371B4B

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

Preview Lab → · Contrast checker → · Palette generator →

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