#371A4F#371A4F

#371A4F is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.095 H 306.5°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#371A4F
RGBrgb(55, 26, 79)
HSLhsl(273, 50%, 21%)
HSVhsv(273, 67%, 31%)
CMYKcmyk(30.4%, 67.1%, 0%, 69%)
CIE-LABlab(16.08, 25.74, -27.13)
CIE-LCHlch(16.08, 37.40, 313.50°)
OKLaboklab(28.76% 0.0568 -0.0766)
OKLCHoklch(28.76% 0.095 306.5)
XYZxyz(3.3559, 2.1156, 7.6272)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A4F #324F1A
analogous
#1C1A4F #371A4F #4F1A4C
triadic
#371A4F #4F371A #1A4F37
tetradic
#371A4F #4F1C1A #324F1A #1A4C4F
square
#371A4F #4F1C1A #324F1A #1A4C4F
split-complementary
#371A4F #4C4F1A #1A4F1C
monochromatic
#100817 #170B21 #371A4F #57297D #7738AB

Accessibility & contrast

On white

14.76
#371A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371A4F
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A4F#FFFFFF#000000##FFFFFF
##371A4F1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022751
Deuteranopia (green-blind)
#10284E
Tritanopia (blue-blind)
#332531
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #371a4f;
/* rgb */ color: rgb(55, 26, 79);
/* oklch */ color: oklch(28.8% 0.095 306.5);
Tailwind
colors: {
  custom: {
    50: '#705881',
    500: '#371a4f',
    950: '#000000',
  },
}
SCSS
$custom: #371a4f;
$custom-light: #705881;
$custom-dark: #000000;
JSON
{
  "hex": "#371a4f",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 79
  },
  "hsl": {
    "h": 272.83,
    "s": 50.476,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28763,
    "c": 0.0954,
    "h": 306.5
  },
  "luminance": 0.02116
}

Semantic roles & 50–950 ramp

primary
#371A4F
secondary
#5F8540
accent
#DA4E8D
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #371A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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