#371DAE#371DAE

#371DAE is a dark, highly saturated violet. Relative luminance 0.047; OKLCH L 38.6% C 0.208 H 278.4°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#371DAE
RGBrgb(55, 29, 174)
HSLhsl(251, 71%, 40%)
HSVhsv(251, 83%, 68%)
CMYKcmyk(68.4%, 83.3%, 0%, 31.8%)
CIE-LABlab(26.00, 52.25, -71.36)
CIE-LCHlch(26.00, 88.44, 306.21°)
OKLaboklab(38.57% 0.0306 -0.2061)
OKLCHoklch(38.57% 0.208 278.4)
XYZxyz(9.6524, 4.7461, 40.4436)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371DAE #94AE1D
analogous
#1D4BAE #371DAE #801DAE
triadic
#371DAE #AE371D #1DAE37
tetradic
#371DAE #AE1D4B #94AE1D #1DAE80
square
#371DAE #AE1D4B #94AE1D #1DAE80
split-complementary
#371DAE #AE801D #4BAE1D
monochromatic
#160C45 #26147A #371DAE #4C2CDC #7861E5

Accessibility & contrast

On white

10.77
#371DAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#371DAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371DAE
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371DAE#FFFFFF#000000##FFFFFF
##371DAE1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B2
Deuteranopia (green-blind)
#0038AC
Tritanopia (blue-blind)
#004B68
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #371dae;
/* rgb */ color: rgb(55, 29, 174);
/* oklch */ color: oklch(38.6% 0.208 278.4);
Tailwind
colors: {
  custom: {
    50: '#805fc8',
    500: '#371dae',
    950: '#000000',
  },
}
SCSS
$custom: #371dae;
$custom-light: #805fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#371dae",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 174
  },
  "hsl": {
    "h": 250.759,
    "s": 71.429,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38568,
    "c": 0.20834,
    "h": 278.4
  },
  "luminance": 0.04747
}

Semantic roles & 50–950 ramp

primary
#371DAE
secondary
#B6C95E
accent
#EE3ACE
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #371DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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