#371DA1#371DA1

#371DA1 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.193 H 280.3°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#371DA1
RGBrgb(55, 29, 161)
HSLhsl(252, 69%, 37%)
HSVhsv(252, 82%, 63%)
CMYKcmyk(65.8%, 82%, 0%, 36.9%)
CIE-LABlab(24.52, 48.45, -65.94)
CIE-LCHlch(24.52, 81.82, 306.31°)
OKLaboklab(37.12% 0.0348 -0.1903)
OKLCHoklch(37.12% 0.193 280.3)
XYZxyz(8.4459, 4.2635, 34.0892)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371DA1 #87A11D
analogous
#1D45A1 #371DA1 #791DA1
triadic
#371DA1 #A1371D #1DA137
tetradic
#371DA1 #A11D45 #87A11D #1DA179
square
#371DA1 #A11D45 #87A11D #1DA179
split-complementary
#371DA1 #A1791D #45A11D
monochromatic
#140A39 #25146D #371DA1 #4926D5 #7358E1

Accessibility & contrast

On white

11.33
#371DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#371DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371DA1
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371DA1#FFFFFF#000000##FFFFFF
##371DA11.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371da1;
/* rgb */ color: rgb(55, 29, 161);
/* oklch */ color: oklch(37.1% 0.193 280.3);
Tailwind
colors: {
  custom: {
    50: '#7d5ebe',
    500: '#371da1',
    950: '#000000',
  },
}
SCSS
$custom: #371da1;
$custom-light: #7d5ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#371da1",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 161
  },
  "hsl": {
    "h": 251.818,
    "s": 69.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3712,
    "c": 0.19348,
    "h": 280.3
  },
  "luminance": 0.04264
}

Semantic roles & 50–950 ramp

primary
#371DA1
secondary
#AFC455
accent
#EC3CC9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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