#371A4E#371A4E

#371A4E is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.094 H 307.2°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#371A4E
RGBrgb(55, 26, 78)
HSLhsl(273, 50%, 20%)
HSVhsv(273, 67%, 31%)
CMYKcmyk(29.5%, 66.7%, 0%, 69.4%)
CIE-LABlab(16.01, 25.47, -26.57)
CIE-LCHlch(16.01, 36.80, 313.79°)
OKLaboklab(28.69% 0.0568 -0.075)
OKLCHoklch(28.69% 0.094 307.2)
XYZxyz(3.3198, 2.1011, 7.4369)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A4E #314E1A
analogous
#1D1A4E #371A4E #4E1A4B
triadic
#371A4E #4E371A #1A4E37
tetradic
#371A4E #4E1D1A #314E1A #1A4B4E
square
#371A4E #4E1D1A #314E1A #1A4B4E
split-complementary
#371A4E #4B4E1A #1A4E1D
monochromatic
#100817 #170B20 #371A4E #57297C #7839AA

Accessibility & contrast

On white

14.79
#371A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371A4E
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A4E#FFFFFF#000000##FFFFFF
##371A4E1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042750
Deuteranopia (green-blind)
#11284D
Tritanopia (blue-blind)
#332431
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #371a4e;
/* rgb */ color: rgb(55, 26, 78);
/* oklch */ color: oklch(28.7% 0.094 307.2);
Tailwind
colors: {
  custom: {
    50: '#705880',
    500: '#371a4e',
    950: '#000000',
  },
}
SCSS
$custom: #371a4e;
$custom-light: #705880;
$custom-dark: #000000;
JSON
{
  "hex": "#371a4e",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 273.462,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28687,
    "c": 0.0941,
    "h": 307.2
  },
  "luminance": 0.02101
}

Semantic roles & 50–950 ramp

primary
#371A4E
secondary
#5E8440
accent
#DA4E8C
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #371A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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