#371AA7#371AA7

#371AA7 is a dark, highly saturated violet. Relative luminance 0.043; OKLCH L 37.5% C 0.203 H 279.7°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#371AA7
RGBrgb(55, 26, 167)
HSLhsl(252, 73%, 38%)
HSVhsv(252, 84%, 65%)
CMYKcmyk(67.1%, 84.4%, 0%, 34.5%)
CIE-LABlab(24.77, 51.49, -69.18)
CIE-LCHlch(24.77, 86.23, 306.66°)
OKLaboklab(37.49% 0.0341 -0.1997)
OKLCHoklch(37.49% 0.203 279.7)
XYZxyz(8.9178, 4.3403, 36.9195)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371AA7 #8AA71A
analogous
#1A44A7 #371AA7 #7D1AA7
triadic
#371AA7 #A7371A #1AA737
tetradic
#371AA7 #A71A44 #8AA71A #1AA77D
square
#371AA7 #A71A44 #8AA71A #1AA77D
split-complementary
#371AA7 #A77D1A #44A71A
monochromatic
#140A3D #261272 #371AA7 #4822DC #7457E5

Accessibility & contrast

On white

11.24
#371AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#371AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371AA7
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371AA7#FFFFFF#000000##FFFFFF
##371AA71.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0035A5
Tritanopia (blue-blind)
#004763
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #371aa7;
/* rgb */ color: rgb(55, 26, 167);
/* oklch */ color: oklch(37.5% 0.203 279.7);
Tailwind
colors: {
  custom: {
    50: '#7f5dc3',
    500: '#371aa7',
    950: '#000000',
  },
}
SCSS
$custom: #371aa7;
$custom-light: #7f5dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#371aa7",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 167
  },
  "hsl": {
    "h": 252.34,
    "s": 73.057,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37486,
    "c": 0.20261,
    "h": 279.7
  },
  "luminance": 0.04341
}

Semantic roles & 50–950 ramp

primary
#371AA7
secondary
#B0C855
accent
#F038CA
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #371AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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