#371E70#371E70

#371E70 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.133 H 291.0°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#371E70
RGBrgb(55, 30, 112)
HSLhsl(258, 58%, 28%)
HSVhsv(258, 73%, 44%)
CMYKcmyk(50.9%, 73.2%, 0%, 56.1%)
CIE-LABlab(19.68, 33.09, -43.19)
CIE-LCHlch(19.68, 54.41, 307.46°)
OKLaboklab(32.21% 0.0477 -0.1239)
OKLCHoklch(32.21% 0.133 291)
XYZxyz(4.9636, 2.9104, 15.6263)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E70 #57701E
analogous
#1E2E70 #371E70 #601E70
triadic
#371E70 #70371E #1E7037
tetradic
#371E70 #701E2E #57701E #1E7060
square
#371E70 #701E2E #57701E #1E7060
split-complementary
#371E70 #70601E #2E701E
monochromatic
#0C0618 #1F1140 #371E70 #4F2BA0 #693DCB

Accessibility & contrast

On white

13.27
#371E70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#371E70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E70
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E70#FFFFFF#000000##FFFFFF
##371E701.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#243344
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371e70;
/* rgb */ color: rgb(55, 30, 112);
/* oklch */ color: oklch(32.2% 0.133 291.0);
Tailwind
colors: {
  custom: {
    50: '#745c9a',
    500: '#371e70',
    950: '#000000',
  },
}
SCSS
$custom: #371e70;
$custom-light: #745c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#371e70",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 112
  },
  "hsl": {
    "h": 258.293,
    "s": 57.746,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32214,
    "c": 0.13271,
    "h": 291
  },
  "luminance": 0.02911
}

Semantic roles & 50–950 ramp

primary
#371E70
secondary
#87A446
accent
#E147B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371E70

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

Preview Lab → · Contrast checker → · Palette generator →

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