#371E9B#371E9B

#371E9B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.186 H 281.2°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#371E9B
RGBrgb(55, 30, 155)
HSLhsl(252, 68%, 36%)
HSVhsv(252, 81%, 61%)
CMYKcmyk(64.5%, 80.6%, 0%, 39.2%)
CIE-LABlab(24.02, 46.20, -63.10)
CIE-LCHlch(24.02, 78.21, 306.21°)
OKLaboklab(36.58% 0.0361 -0.1821)
OKLCHoklch(36.58% 0.186 281.2)
XYZxyz(7.9544, 4.1067, 31.3775)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E9B #829B1E
analogous
#1E449B #371E9B #761E9B
triadic
#371E9B #9B371E #1E9B37
tetradic
#371E9B #9B1E44 #829B1E #1E9B76
square
#371E9B #9B1E44 #829B1E #1E9B76
split-complementary
#371E9B #9B761E #449B1E
monochromatic
#130A34 #251468 #371E9B #4928CE #7155DE

Accessibility & contrast

On white

11.53
#371E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#371E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E9B
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E9B#FFFFFF#000000##FFFFFF
##371E9B1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003599
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #371e9b;
/* rgb */ color: rgb(55, 30, 155);
/* oklch */ color: oklch(36.6% 0.186 281.2);
Tailwind
colors: {
  custom: {
    50: '#7c5eba',
    500: '#371e9b',
    950: '#000000',
  },
}
SCSS
$custom: #371e9b;
$custom-light: #7c5eba;
$custom-dark: #000000;
JSON
{
  "hex": "#371e9b",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 252,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36576,
    "c": 0.18564,
    "h": 281.2
  },
  "luminance": 0.04107
}

Semantic roles & 50–950 ramp

primary
#371E9B
secondary
#ABC253
accent
#EA3DC8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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