#371A98#371A98

#371A98 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.186 H 282.2°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#371A98
RGBrgb(55, 26, 152)
HSLhsl(254, 71%, 35%)
HSVhsv(254, 83%, 60%)
CMYKcmyk(63.8%, 82.9%, 0%, 40.4%)
CIE-LABlab(23.06, 47.15, -62.85)
CIE-LCHlch(23.06, 78.57, 306.88°)
OKLaboklab(35.81% 0.0392 -0.1813)
OKLCHoklch(35.81% 0.186 282.2)
XYZxyz(7.6107, 3.8175, 30.0355)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A98 #7B981A
analogous
#1A3C98 #371A98 #761A98
triadic
#371A98 #98371A #1A9837
tetradic
#371A98 #981A3C #7B981A #1A9876
square
#371A98 #981A3C #7B981A #1A9876
split-complementary
#371A98 #98761A #3C981A
monochromatic
#11082F #241164 #371A98 #4A23CC #6E4CE0

Accessibility & contrast

On white

11.91
#371A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371A98
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A98#FFFFFF#000000##FFFFFF
##371A981.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #371a98;
/* rgb */ color: rgb(55, 26, 152);
/* oklch */ color: oklch(35.8% 0.186 282.2);
Tailwind
colors: {
  custom: {
    50: '#7c5cb8',
    500: '#371a98',
    950: '#000000',
  },
}
SCSS
$custom: #371a98;
$custom-light: #7c5cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#371a98",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 253.81,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35812,
    "c": 0.18551,
    "h": 282.2
  },
  "luminance": 0.03818
}

Semantic roles & 50–950 ramp

primary
#371A98
secondary
#A7C24B
accent
#EE3AC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #371A98

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

Preview Lab → · Contrast checker → · Palette generator →

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