#371E98#371E98

#371E98 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.182 H 281.7°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#371E98
RGBrgb(55, 30, 152)
HSLhsl(252, 67%, 36%)
HSVhsv(252, 80%, 60%)
CMYKcmyk(63.8%, 80.3%, 0%, 40.4%)
CIE-LABlab(23.70, 45.30, -61.80)
CIE-LCHlch(23.70, 76.62, 306.24°)
OKLaboklab(36.25% 0.037 -0.1783)
OKLCHoklch(36.25% 0.182 281.7)
XYZxyz(7.7055, 4.0072, 30.0671)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E98 #7F981E
analogous
#1E4298 #371E98 #741E98
triadic
#371E98 #98371E #1E9837
tetradic
#371E98 #981E42 #7F981E #1E9874
square
#371E98 #981E42 #7F981E #1E9874
split-complementary
#371E98 #98741E #42981E
monochromatic
#120A32 #251465 #371E98 #4928CB #7053DD

Accessibility & contrast

On white

11.66
#371E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#371E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E98
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E98#FFFFFF#000000##FFFFFF
##371E981.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371e98;
/* rgb */ color: rgb(55, 30, 152);
/* oklch */ color: oklch(36.3% 0.182 281.7);
Tailwind
colors: {
  custom: {
    50: '#7b5eb8',
    500: '#371e98',
    950: '#000000',
  },
}
SCSS
$custom: #371e98;
$custom-light: #7b5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#371e98",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 252.295,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36253,
    "c": 0.18211,
    "h": 281.7
  },
  "luminance": 0.04008
}

Semantic roles & 50–950 ramp

primary
#371E98
secondary
#AAC051
accent
#EA3EC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #371E98

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

Preview Lab → · Contrast checker → · Palette generator →

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