#371BB4#371BB4

#371BB4 is a dark, highly saturated violet. Relative luminance 0.049; OKLCH L 39.1% C 0.216 H 277.8°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#371BB4
RGBrgb(55, 27, 180)
HSLhsl(251, 74%, 41%)
HSVhsv(251, 85%, 71%)
CMYKcmyk(69.4%, 85%, 0%, 29.4%)
CIE-LABlab(26.42, 54.78, -74.25)
CIE-LCHlch(26.42, 92.27, 306.42°)
OKLaboklab(39.06% 0.0294 -0.2144)
OKLCHoklch(39.06% 0.216 277.8)
XYZxyz(10.2030, 4.8905, 43.5774)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371BB4 #98B41B
analogous
#1B4CB4 #371BB4 #831BB4
triadic
#371BB4 #B4371B #1BB437
tetradic
#371BB4 #B41B4C #98B41B #1BB483
square
#371BB4 #B41B4C #98B41B #1BB483
split-complementary
#371BB4 #B4831B #4CB41B
monochromatic
#160B4A #27137F #371BB4 #4D2DDF #7A62E7

Accessibility & contrast

On white

10.62
#371BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371BB4
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371BB4#FFFFFF#000000##FFFFFF
##371BB41.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B8
Deuteranopia (green-blind)
#0038B1
Tritanopia (blue-blind)
#004D6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #371bb4;
/* rgb */ color: rgb(55, 27, 180);
/* oklch */ color: oklch(39.1% 0.216 277.8);
Tailwind
colors: {
  custom: {
    50: '#815fcc',
    500: '#371bb4',
    950: '#000000',
  },
}
SCSS
$custom: #371bb4;
$custom-light: #815fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#371bb4",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 250.98,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.3906,
    "c": 0.21646,
    "h": 277.8
  },
  "luminance": 0.04891
}

Semantic roles & 50–950 ramp

primary
#371BB4
secondary
#B8CC5F
accent
#F137CF
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #371BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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