#371E72#371E72

#371E72 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.4% C 0.135 H 290.4°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#371E72
RGBrgb(55, 30, 114)
HSLhsl(258, 58%, 28%)
HSVhsv(258, 74%, 45%)
CMYKcmyk(51.8%, 73.7%, 0%, 55.3%)
CIE-LABlab(19.86, 33.70, -44.18)
CIE-LCHlch(19.86, 55.57, 307.34°)
OKLaboklab(32.4% 0.0472 -0.1268)
OKLCHoklch(32.4% 0.135 290.4)
XYZxyz(5.0762, 2.9555, 16.2193)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E72 #59721E
analogous
#1E2F72 #371E72 #611E72
triadic
#371E72 #72371E #1E7237
tetradic
#371E72 #721E2F #59721E #1E7261
square
#371E72 #721E2F #59721E #1E7261
split-complementary
#371E72 #72611E #2F721E
monochromatic
#0C0618 #201142 #371E72 #4E2BA2 #683ECC

Accessibility & contrast

On white

13.20
#371E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#371E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E72
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E72#FFFFFF#000000##FFFFFF
##371E721.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#233445
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371e72;
/* rgb */ color: rgb(55, 30, 114);
/* oklch */ color: oklch(32.4% 0.135 290.4);
Tailwind
colors: {
  custom: {
    50: '#745c9b',
    500: '#371e72',
    950: '#000000',
  },
}
SCSS
$custom: #371e72;
$custom-light: #745c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#371e72",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 114
  },
  "hsl": {
    "h": 257.857,
    "s": 58.333,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32401,
    "c": 0.13529,
    "h": 290.4
  },
  "luminance": 0.02956
}

Semantic roles & 50–950 ramp

primary
#371E72
secondary
#89A646
accent
#E246B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371E72

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

Preview Lab → · Contrast checker → · Palette generator →

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