#371C58#371C58

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

Color values

HEX#371C58
RGBrgb(55, 28, 88)
HSLhsl(267, 52%, 23%)
HSVhsv(267, 68%, 35%)
CMYKcmyk(37.5%, 68.2%, 0%, 65.5%)
CIE-LABlab(17.21, 27.08, -31.40)
CIE-LCHlch(17.21, 41.46, 310.78°)
OKLaboklab(29.8% 0.0535 -0.0892)
OKLCHoklch(29.8% 0.104 301)
XYZxyz(3.7518, 2.3473, 9.4860)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C58 #3D581C
analogous
#1C1F58 #371C58 #551C58
triadic
#371C58 #58371C #1C5837
tetradic
#371C58 #581C1F #3D581C #1C5855
square
#371C58 #581C1F #3D581C #1C5855
split-complementary
#371C58 #58551C #1F581C
monochromatic
#0F0717 #1A0D2A #371C58 #542B86 #713AB5

Accessibility & contrast

On white

14.29
#371C58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#371C58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C58
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C58#FFFFFF#000000##FFFFFF
##371C581.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5A
Deuteranopia (green-blind)
#062A57
Tritanopia (blue-blind)
#302937
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #371c58;
/* rgb */ color: rgb(55, 28, 88);
/* oklch */ color: oklch(29.8% 0.104 301.0);
Tailwind
colors: {
  custom: {
    50: '#715a88',
    500: '#371c58',
    950: '#000000',
  },
}
SCSS
$custom: #371c58;
$custom-light: #715a88;
$custom-dark: #000000;
JSON
{
  "hex": "#371c58",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 88
  },
  "hsl": {
    "h": 267,
    "s": 51.724,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29802,
    "c": 0.10402,
    "h": 301
  },
  "luminance": 0.02347
}

Semantic roles & 50–950 ramp

primary
#371C58
secondary
#6C8E42
accent
#DB4D9B
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08040B
muted
#7B797C

Preview Lab

Preview with #371C58

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

Preview Lab → · Contrast checker → · Palette generator →

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