#371C5F#371C5F

#371C5F is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.4% C 0.113 H 297.8°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#371C5F
RGBrgb(55, 28, 95)
HSLhsl(264, 54%, 24%)
HSVhsv(264, 71%, 37%)
CMYKcmyk(42.1%, 70.5%, 0%, 62.7%)
CIE-LABlab(17.78, 29.13, -35.16)
CIE-LCHlch(17.78, 45.66, 309.65°)
OKLaboklab(30.39% 0.0528 -0.1002)
OKLCHoklch(30.39% 0.113 297.8)
XYZxyz(4.0558, 2.4689, 11.0871)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C5F #445F1C
analogous
#1C235F #371C5F #591C5F
triadic
#371C5F #5F371C #1C5F37
tetradic
#371C5F #5F1C23 #445F1C #1C5F59
square
#371C5F #5F1C23 #445F1C #1C5F59
split-complementary
#371C5F #5F591C #235F1C
monochromatic
#0E0718 #1C0E30 #371C5F #522A8E #6E38BE

Accessibility & contrast

On white

14.06
#371C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#371C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C5F
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C5F#FFFFFF#000000##FFFFFF
##371C5F1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#002B5E
Tritanopia (blue-blind)
#2D2C3A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #371c5f;
/* rgb */ color: rgb(55, 28, 95);
/* oklch */ color: oklch(30.4% 0.113 297.8);
Tailwind
colors: {
  custom: {
    50: '#725a8d',
    500: '#371c5f',
    950: '#000000',
  },
}
SCSS
$custom: #371c5f;
$custom-light: #725a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#371c5f",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 95
  },
  "hsl": {
    "h": 264.179,
    "s": 54.472,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30388,
    "c": 0.11329,
    "h": 297.8
  },
  "luminance": 0.02469
}

Semantic roles & 50–950 ramp

primary
#371C5F
secondary
#739442
accent
#DE4AA2
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #371C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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