#371C93#371C93

#371C93 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.178 H 282.9°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#371C93
RGBrgb(55, 28, 147)
HSLhsl(254, 68%, 34%)
HSVhsv(254, 81%, 58%)
CMYKcmyk(62.6%, 81%, 0%, 42.4%)
CIE-LABlab(22.82, 44.76, -60.16)
CIE-LCHlch(22.82, 74.98, 306.65°)
OKLaboklab(35.49% 0.0398 -0.1735)
OKLCHoklch(35.49% 0.178 282.9)
XYZxyz(7.2556, 3.7488, 27.9394)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C93 #78931C
analogous
#1C3D93 #371C93 #731C93
triadic
#371C93 #93371C #1C9337
tetradic
#371C93 #931C3D #78931C #1C9373
square
#371C93 #931C3D #78931C #1C9373
split-complementary
#371C93 #93731C #3D931C
monochromatic
#11082C #241260 #371C93 #4A26C6 #6D4CDD

Accessibility & contrast

On white

12.00
#371C93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#371C93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C93
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C93#FFFFFF#000000##FFFFFF
##371C931.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003291
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #371c93;
/* rgb */ color: rgb(55, 28, 147);
/* oklch */ color: oklch(35.5% 0.178 282.9);
Tailwind
colors: {
  custom: {
    50: '#7b5db4',
    500: '#371c93',
    950: '#000000',
  },
}
SCSS
$custom: #371c93;
$custom-light: #7b5db4;
$custom-dark: #000000;
JSON
{
  "hex": "#371c93",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 147
  },
  "hsl": {
    "h": 253.613,
    "s": 68,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35486,
    "c": 0.17798,
    "h": 282.9
  },
  "luminance": 0.03749
}

Semantic roles & 50–950 ramp

primary
#371C93
secondary
#A5BF4C
accent
#EB3DC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371C93

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

Preview Lab → · Contrast checker → · Palette generator →

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