#371E54#371E54

#371E54 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.8% C 0.095 H 302.3°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#371E54
RGBrgb(55, 30, 84)
HSLhsl(268, 47%, 22%)
HSVhsv(268, 64%, 33%)
CMYKcmyk(34.5%, 64.3%, 0%, 67.1%)
CIE-LABlab(17.37, 24.69, -28.45)
CIE-LCHlch(17.37, 37.67, 310.95°)
OKLaboklab(29.82% 0.0509 -0.0805)
OKLCHoklch(29.82% 0.095 302.3)
XYZxyz(3.6397, 2.3809, 8.6536)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E54 #3B541E
analogous
#1E2054 #371E54 #521E54
triadic
#371E54 #54371E #1E5437
tetradic
#371E54 #541E20 #3B541E #1E5452
square
#371E54 #541E20 #3B541E #1E5452
split-complementary
#371E54 #54521E #20541E
monochromatic
#0F0817 #190E27 #371E54 #552E81 #723EAE

Accessibility & contrast

On white

14.23
#371E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#371E54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E54
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E54#FFFFFF#000000##FFFFFF
##371E541.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042A56
Deuteranopia (green-blind)
#102A53
Tritanopia (blue-blind)
#312935
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #371e54;
/* rgb */ color: rgb(55, 30, 84);
/* oklch */ color: oklch(29.8% 0.095 302.3);
Tailwind
colors: {
  custom: {
    50: '#705b84',
    500: '#371e54',
    950: '#000000',
  },
}
SCSS
$custom: #371e54;
$custom-light: #705b84;
$custom-dark: #000000;
JSON
{
  "hex": "#371e54",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 84
  },
  "hsl": {
    "h": 267.778,
    "s": 47.368,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2982,
    "c": 0.0953,
    "h": 302.3
  },
  "luminance": 0.02381
}

Semantic roles & 50–950 ramp

primary
#371E54
secondary
#698945
accent
#D75199
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08040B
muted
#7B797C

Preview Lab

Preview with #371E54

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

Preview Lab → · Contrast checker → · Palette generator →

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