#371A5C#371A5C

#371A5C is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.8% C 0.112 H 299.7°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#371A5C
RGBrgb(55, 26, 92)
HSLhsl(266, 56%, 23%)
HSVhsv(266, 72%, 36%)
CMYKcmyk(40.2%, 71.7%, 0%, 63.9%)
CIE-LABlab(17.10, 29.42, -34.26)
CIE-LCHlch(17.10, 45.16, 310.66°)
OKLaboklab(29.82% 0.0557 -0.0976)
OKLCHoklch(29.82% 0.112 299.7)
XYZxyz(3.8762, 2.3237, 10.3674)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A5C #3F5C1A
analogous
#1A1E5C #371A5C #581A5C
triadic
#371A5C #5C371A #1A5C37
tetradic
#371A5C #5C1A1E #3F5C1A #1A5C58
square
#371A5C #5C1A1E #3F5C1A #1A5C58
split-complementary
#371A5C #5C581A #1E5C1A
monochromatic
#0E0718 #1A0D2C #371A5C #54278C #7035BB

Accessibility & contrast

On white

14.34
#371A5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#371A5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A5C
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A5C#FFFFFF#000000##FFFFFF
##371A5C1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#2F2938
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #371a5c;
/* rgb */ color: rgb(55, 26, 92);
/* oklch */ color: oklch(29.8% 0.112 299.7);
Tailwind
colors: {
  custom: {
    50: '#71598b',
    500: '#371a5c',
    950: '#000000',
  },
}
SCSS
$custom: #371a5c;
$custom-light: #71598b;
$custom-dark: #000000;
JSON
{
  "hex": "#371a5c",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 92
  },
  "hsl": {
    "h": 266.364,
    "s": 55.932,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29823,
    "c": 0.11234,
    "h": 299.7
  },
  "luminance": 0.02324
}

Semantic roles & 50–950 ramp

primary
#371A5C
secondary
#6E9240
accent
#DF499D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #371A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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