#371F5C#371F5C

#371F5C is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.6% C 0.105 H 298.1°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#371F5C
RGBrgb(55, 31, 92)
HSLhsl(264, 50%, 24%)
HSVhsv(264, 66%, 36%)
CMYKcmyk(40.2%, 66.3%, 0%, 63.9%)
CIE-LABlab(18.21, 26.42, -32.46)
CIE-LCHlch(18.21, 41.85, 309.14°)
OKLaboklab(30.62% 0.0492 -0.0923)
OKLCHoklch(30.62% 0.105 298.1)
XYZxyz(3.9968, 2.5649, 10.4076)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F5C #445C1F
analogous
#1F265C #371F5C #561F5C
triadic
#371F5C #5C371F #1F5C37
tetradic
#371F5C #5C1F26 #445C1F #1F5C56
square
#371F5C #5C1F26 #445C1F #1F5C56
split-complementary
#371F5C #5C561F #265C1F
monochromatic
#0E0817 #1C102E #371F5C #522E8A #6E3EB8

Accessibility & contrast

On white

13.88
#371F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#371F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F5C
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F5C#FFFFFF#000000##FFFFFF
##371F5C1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#052C5B
Tritanopia (blue-blind)
#2E2C3A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #371f5c;
/* rgb */ color: rgb(55, 31, 92);
/* oklch */ color: oklch(30.6% 0.105 298.1);
Tailwind
colors: {
  custom: {
    50: '#715c8b',
    500: '#371f5c',
    950: '#000000',
  },
}
SCSS
$custom: #371f5c;
$custom-light: #715c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#371f5c",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 92
  },
  "hsl": {
    "h": 263.607,
    "s": 49.593,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30624,
    "c": 0.10463,
    "h": 298.1
  },
  "luminance": 0.02565
}

Semantic roles & 50–950 ramp

primary
#371F5C
secondary
#739146
accent
#D94FA3
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #371F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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