#371FAE#371FAE

#371FAE is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 38.8% C 0.207 H 278.3°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#371FAE
RGBrgb(55, 31, 174)
HSLhsl(250, 70%, 40%)
HSVhsv(250, 82%, 68%)
CMYKcmyk(68.4%, 82.2%, 0%, 31.8%)
CIE-LABlab(26.30, 51.38, -70.86)
CIE-LCHlch(26.30, 87.53, 305.94°)
OKLaboklab(38.77% 0.0298 -0.2047)
OKLCHoklch(38.77% 0.207 278.3)
XYZxyz(9.7031, 4.8473, 40.4605)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371FAE #96AE1F
analogous
#1F4EAE #371FAE #7E1FAE
triadic
#371FAE #AE371F #1FAE37
tetradic
#371FAE #AE1F4E #96AE1F #1FAE7E
square
#371FAE #AE1F4E #96AE1F #1FAE7E
split-complementary
#371FAE #AE7E1F #4EAE1F
monochromatic
#160C46 #27167A #371FAE #4D30DA #7964E3

Accessibility & contrast

On white

10.66
#371FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#371FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371FAE
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371FAE#FFFFFF#000000##FFFFFF
##371FAE1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371fae;
/* rgb */ color: rgb(55, 31, 174);
/* oklch */ color: oklch(38.8% 0.207 278.3);
Tailwind
colors: {
  custom: {
    50: '#8060c8',
    500: '#371fae',
    950: '#000000',
  },
}
SCSS
$custom: #371fae;
$custom-light: #8060c8;
$custom-dark: #000000;
JSON
{
  "hex": "#371fae",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 174
  },
  "hsl": {
    "h": 250.07,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38773,
    "c": 0.20684,
    "h": 278.3
  },
  "luminance": 0.04848
}

Semantic roles & 50–950 ramp

primary
#371FAE
secondary
#B7C860
accent
#ED3BCF
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #371FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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