#371C94#371C94

#371C94 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.179 H 282.7°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#371C94
RGBrgb(55, 28, 148)
HSLhsl(254, 68%, 35%)
HSVhsv(254, 81%, 58%)
CMYKcmyk(62.8%, 81.1%, 0%, 42%)
CIE-LABlab(22.93, 45.06, -60.59)
CIE-LCHlch(22.93, 75.51, 306.64°)
OKLaboklab(35.59% 0.0395 -0.1748)
OKLCHoklch(35.59% 0.179 282.7)
XYZxyz(7.3344, 3.7803, 28.3544)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C94 #79941C
analogous
#1C3D94 #371C94 #731C94
triadic
#371C94 #94371C #1C9437
tetradic
#371C94 #941C3D #79941C #1C9473
square
#371C94 #941C3D #79941C #1C9473
split-complementary
#371C94 #94731C #3D941C
monochromatic
#11092D #241261 #371C94 #4A26C7 #6E4DDD

Accessibility & contrast

On white

11.96
#371C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#371C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C94
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C94#FFFFFF#000000##FFFFFF
##371C941.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #371c94;
/* rgb */ color: rgb(55, 28, 148);
/* oklch */ color: oklch(35.6% 0.179 282.7);
Tailwind
colors: {
  custom: {
    50: '#7b5db5',
    500: '#371c94',
    950: '#000000',
  },
}
SCSS
$custom: #371c94;
$custom-light: #7b5db5;
$custom-dark: #000000;
JSON
{
  "hex": "#371c94",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 253.5,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35594,
    "c": 0.17916,
    "h": 282.7
  },
  "luminance": 0.03781
}

Semantic roles & 50–950 ramp

primary
#371C94
secondary
#A6C04C
accent
#EB3DC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #371C94

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

Preview Lab → · Contrast checker → · Palette generator →

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