#371C74#371C74

#371C74 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.140 H 290.3°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#371C74
RGBrgb(55, 28, 116)
HSLhsl(258, 61%, 28%)
HSVhsv(258, 76%, 45%)
CMYKcmyk(52.6%, 75.9%, 0%, 54.5%)
CIE-LABlab(19.65, 35.43, -45.82)
CIE-LCHlch(19.65, 57.92, 307.71°)
OKLaboklab(32.31% 0.0487 -0.1316)
OKLCHoklch(32.31% 0.14 290.3)
XYZxyz(5.1423, 2.9035, 16.8091)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C74 #59741C
analogous
#1C2D74 #371C74 #631C74
triadic
#371C74 #74371C #1C7437
tetradic
#371C74 #741C2D #59741C #1C7463
square
#371C74 #741C2D #59741C #1C7463
split-complementary
#371C74 #74631C #2D741C
monochromatic
#0C0619 #201043 #371C74 #4E28A5 #683BD0

Accessibility & contrast

On white

13.28
#371C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371C74
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C74#FFFFFF#000000##FFFFFF
##371C741.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#223346
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371c74;
/* rgb */ color: rgb(55, 28, 116);
/* oklch */ color: oklch(32.3% 0.140 290.3);
Tailwind
colors: {
  custom: {
    50: '#755b9d',
    500: '#371c74',
    950: '#000000',
  },
}
SCSS
$custom: #371c74;
$custom-light: #755b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#371c74",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 116
  },
  "hsl": {
    "h": 258.409,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32309,
    "c": 0.14029,
    "h": 290.3
  },
  "luminance": 0.02904
}

Semantic roles & 50–950 ramp

primary
#371C74
secondary
#89A843
accent
#E444B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371C74

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

Preview Lab → · Contrast checker → · Palette generator →

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