#371FA8#371FA8

#371FA8 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.200 H 279.1°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#371FA8
RGBrgb(55, 31, 168)
HSLhsl(251, 69%, 39%)
HSVhsv(251, 82%, 66%)
CMYKcmyk(67.3%, 81.5%, 0%, 34.1%)
CIE-LABlab(25.62, 49.61, -68.37)
CIE-LCHlch(25.62, 84.47, 305.96°)
OKLaboklab(38.11% 0.0316 -0.1974)
OKLCHoklch(38.11% 0.2 279.1)
XYZxyz(9.1312, 4.6186, 37.4485)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371FA8 #90A81F
analogous
#1F4CA8 #371FA8 #7C1FA8
triadic
#371FA8 #A8371F #1FA837
tetradic
#371FA8 #A81F4C #90A81F #1FA87C
square
#371FA8 #A81F4C #90A81F #1FA87C
split-complementary
#371FA8 #A87C1F #4CA81F
monochromatic
#150C41 #261574 #371FA8 #4A2CD8 #7760E2

Accessibility & contrast

On white

10.92
#371FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#371FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371FA8
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371FA8#FFFFFF#000000##FFFFFF
##371FA81.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0037A6
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #371fa8;
/* rgb */ color: rgb(55, 31, 168);
/* oklch */ color: oklch(38.1% 0.200 279.1);
Tailwind
colors: {
  custom: {
    50: '#7f60c3',
    500: '#371fa8',
    950: '#000000',
  },
}
SCSS
$custom: #371fa8;
$custom-light: #7f60c3;
$custom-dark: #000000;
JSON
{
  "hex": "#371fa8",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 250.511,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38107,
    "c": 0.19995,
    "h": 279.1
  },
  "luminance": 0.04619
}

Semantic roles & 50–950 ramp

primary
#371FA8
secondary
#B4C65D
accent
#EC3CCD
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #371FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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