#371FA0#371FA0

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

Color values

HEX#371FA0
RGBrgb(55, 31, 160)
HSLhsl(251, 68%, 37%)
HSVhsv(251, 81%, 63%)
CMYKcmyk(65.6%, 80.6%, 0%, 37.3%)
CIE-LABlab(24.73, 47.22, -64.98)
CIE-LCHlch(24.73, 80.33, 306.01°)
OKLaboklab(37.23% 0.034 -0.1876)
OKLCHoklch(37.23% 0.191 280.3)
XYZxyz(8.4087, 4.3296, 33.6435)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371FA0 #88A01F
analogous
#1F47A0 #371FA0 #781FA0
triadic
#371FA0 #A0371F #1FA037
tetradic
#371FA0 #A01F47 #88A01F #1FA078
square
#371FA0 #A01F47 #88A01F #1FA078
split-complementary
#371FA0 #A0781F #47A01F
monochromatic
#140B39 #25156D #371FA0 #4929D3 #735ADF

Accessibility & contrast

On white

11.25
#371FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371FA0
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371FA0#FFFFFF#000000##FFFFFF
##371FA01.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#00369E
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #371fa0;
/* rgb */ color: rgb(55, 31, 160);
/* oklch */ color: oklch(37.2% 0.191 280.3);
Tailwind
colors: {
  custom: {
    50: '#7d5fbd',
    500: '#371fa0',
    950: '#000000',
  },
}
SCSS
$custom: #371fa0;
$custom-light: #7d5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#371fa0",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 251.163,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37232,
    "c": 0.19065,
    "h": 280.3
  },
  "luminance": 0.0433
}

Semantic roles & 50–950 ramp

primary
#371FA0
secondary
#AFC358
accent
#EA3DCA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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