#371CA1#371CA1

#371CA1 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.194 H 280.5°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#371CA1
RGBrgb(55, 28, 161)
HSLhsl(252, 70%, 37%)
HSVhsv(252, 83%, 63%)
CMYKcmyk(65.8%, 82.6%, 0%, 36.9%)
CIE-LABlab(24.37, 48.90, -66.19)
CIE-LCHlch(24.37, 82.29, 306.45°)
OKLaboklab(37.01% 0.0352 -0.191)
OKLCHoklch(37.01% 0.194 280.5)
XYZxyz(8.4218, 4.2153, 34.0811)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371CA1 #86A11C
analogous
#1C44A1 #371CA1 #791CA1
triadic
#371CA1 #A1371C #1CA137
tetradic
#371CA1 #A11C44 #86A11C #1CA179
square
#371CA1 #A11C44 #86A11C #1CA179
split-complementary
#371CA1 #A1791C #44A11C
monochromatic
#130A39 #25136D #371CA1 #4925D5 #7256E2

Accessibility & contrast

On white

11.39
#371CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#371CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371CA1
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371CA1#FFFFFF#000000##FFFFFF
##371CA11.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #371ca1;
/* rgb */ color: rgb(55, 28, 161);
/* oklch */ color: oklch(37.0% 0.194 280.5);
Tailwind
colors: {
  custom: {
    50: '#7d5ebe',
    500: '#371ca1',
    950: '#000000',
  },
}
SCSS
$custom: #371ca1;
$custom-light: #7d5ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#371ca1",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 161
  },
  "hsl": {
    "h": 252.18,
    "s": 70.37,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37014,
    "c": 0.19427,
    "h": 280.5
  },
  "luminance": 0.04216
}

Semantic roles & 50–950 ramp

primary
#371CA1
secondary
#AEC554
accent
#ED3BC9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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