#371CB3#371CB3

#371CB3 is a dark, highly saturated violet. Relative luminance 0.049; OKLCH L 39.0% C 0.215 H 277.9°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#371CB3
RGBrgb(55, 28, 179)
HSLhsl(251, 73%, 41%)
HSVhsv(251, 84%, 70%)
CMYKcmyk(69.3%, 84.4%, 0%, 29.8%)
CIE-LABlab(26.44, 54.10, -73.62)
CIE-LCHlch(26.44, 91.36, 306.31°)
OKLaboklab(39.04% 0.0294 -0.2126)
OKLCHoklch(39.04% 0.215 277.9)
XYZxyz(10.1249, 4.8965, 43.0506)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371CB3 #98B31C
analogous
#1C4DB3 #371CB3 #821CB3
triadic
#371CB3 #B3371C #1CB337
tetradic
#371CB3 #B31C4D #98B31C #1CB382
square
#371CB3 #B31C4D #98B31C #1CB382
split-complementary
#371CB3 #B3821C #4DB31C
monochromatic
#160B49 #27147E #371CB3 #4D2EDE #7A63E7

Accessibility & contrast

On white

10.61
#371CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#371CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371CB3
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371CB3#FFFFFF#000000##FFFFFF
##371CB31.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0038B0
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #371cb3;
/* rgb */ color: rgb(55, 28, 179);
/* oklch */ color: oklch(39.0% 0.215 277.9);
Tailwind
colors: {
  custom: {
    50: '#815fcb',
    500: '#371cb3',
    950: '#000000',
  },
}
SCSS
$custom: #371cb3;
$custom-light: #815fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#371cb3",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 179
  },
  "hsl": {
    "h": 250.728,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39038,
    "c": 0.21467,
    "h": 277.9
  },
  "luminance": 0.04897
}

Semantic roles & 50–950 ramp

primary
#371CB3
secondary
#B8CB5F
accent
#F038CF
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #371CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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