#371D98#371D98

#371D98 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.183 H 281.9°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#371D98
RGBrgb(55, 29, 152)
HSLhsl(253, 68%, 35%)
HSVhsv(253, 81%, 60%)
CMYKcmyk(63.8%, 80.9%, 0%, 40.4%)
CIE-LABlab(23.53, 45.78, -62.07)
CIE-LCHlch(23.53, 77.13, 306.41°)
OKLaboklab(36.14% 0.0376 -0.1791)
OKLCHoklch(36.14% 0.183 281.9)
XYZxyz(7.6806, 3.9574, 30.0588)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D98 #7E981D
analogous
#1D4098 #371D98 #741D98
triadic
#371D98 #98371D #1D9837
tetradic
#371D98 #981D40 #7E981D #1D9874
square
#371D98 #981D40 #7E981D #1D9874
split-complementary
#371D98 #98741D #40981D
monochromatic
#120931 #241365 #371D98 #4A27CB #6F52DE

Accessibility & contrast

On white

11.72
#371D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#371D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D98
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D98#FFFFFF#000000##FFFFFF
##371D981.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #371d98;
/* rgb */ color: rgb(55, 29, 152);
/* oklch */ color: oklch(36.1% 0.183 281.9);
Tailwind
colors: {
  custom: {
    50: '#7b5eb8',
    500: '#371d98',
    950: '#000000',
  },
}
SCSS
$custom: #371d98;
$custom-light: #7b5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#371d98",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 252.683,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36138,
    "c": 0.18299,
    "h": 281.9
  },
  "luminance": 0.03958
}

Semantic roles & 50–950 ramp

primary
#371D98
secondary
#A9C150
accent
#EB3DC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #371D98

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

Preview Lab → · Contrast checker → · Palette generator →

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