#371FB4#371FB4

#371FB4 is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.4% C 0.214 H 277.5°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#371FB4
RGBrgb(55, 31, 180)
HSLhsl(250, 71%, 41%)
HSVhsv(250, 83%, 71%)
CMYKcmyk(69.4%, 82.8%, 0%, 29.4%)
CIE-LABlab(26.98, 53.13, -73.32)
CIE-LCHlch(26.98, 90.55, 305.93°)
OKLaboklab(39.44% 0.0279 -0.2118)
OKLCHoklch(39.44% 0.214 277.5)
XYZxyz(10.3011, 5.0866, 43.6101)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371FB4 #9CB41F
analogous
#1F52B4 #371FB4 #821FB4
triadic
#371FB4 #B4371F #1FB437
tetradic
#371FB4 #B41F52 #9CB41F #1FB482
square
#371FB4 #B41F52 #9CB41F #1FB482
split-complementary
#371FB4 #B4821F #52B41F
monochromatic
#170D4C #271680 #371FB4 #4F34DC #7C68E5

Accessibility & contrast

On white

10.41
#371FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#371FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371FB4
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371FB4#FFFFFF#000000##FFFFFF
##371FB41.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#0039B1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #371fb4;
/* rgb */ color: rgb(55, 31, 180);
/* oklch */ color: oklch(39.4% 0.214 277.5);
Tailwind
colors: {
  custom: {
    50: '#8161cc',
    500: '#371fb4',
    950: '#000000',
  },
}
SCSS
$custom: #371fb4;
$custom-light: #8161cc;
$custom-dark: #000000;
JSON
{
  "hex": "#371fb4",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 249.664,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39444,
    "c": 0.21366,
    "h": 277.5
  },
  "luminance": 0.05087
}

Semantic roles & 50–950 ramp

primary
#371FB4
secondary
#BACB64
accent
#ED3AD1
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #371FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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