#371FD2#371FD2

#371FD2 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.9% C 0.247 H 274.4°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#371FD2
RGBrgb(55, 31, 210)
HSLhsl(248, 74%, 47%)
HSVhsv(248, 85%, 82%)
CMYKcmyk(73.8%, 85.2%, 0%, 17.6%)
CIE-LABlab(30.51, 61.67, -85.13)
CIE-LCHlch(30.51, 105.12, 305.92°)
OKLaboklab(42.88% 0.0189 -0.246)
OKLCHoklch(42.88% 0.247 274.4)
XYZxyz(13.6945, 6.4439, 61.4824)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371FD2 #BAD21F
analogous
#1F60D2 #371FD2 #911FD2
triadic
#371FD2 #D2371F #1FD237
tetradic
#371FD2 #D21F60 #BAD21F #1FD291
square
#371FD2 #D21F60 #BAD21F #1FD291
split-complementary
#371FD2 #D2911F #60D21F
monochromatic
#1B0F67 #29179D #371FD2 #5F4AE4 #8E7FEC

Accessibility & contrast

On white

9.17
#371FD2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#371FD2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371FD2
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371FD2#FFFFFF#000000##FFFFFF
##371FD21.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FD7
Deuteranopia (green-blind)
#003FCF
Tritanopia (blue-blind)
#005B7D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #371fd2;
/* rgb */ color: rgb(55, 31, 210);
/* oklch */ color: oklch(42.9% 0.247 274.4);
Tailwind
colors: {
  custom: {
    50: '#8863e1',
    500: '#371fd2',
    950: '#000000',
  },
}
SCSS
$custom: #371fd2;
$custom-light: #8863e1;
$custom-dark: #000000;
JSON
{
  "hex": "#371fd2",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 210
  },
  "hsl": {
    "h": 248.045,
    "s": 74.274,
    "l": 47.255
  },
  "oklch": {
    "l": 0.42877,
    "c": 0.24677,
    "h": 274.4
  },
  "luminance": 0.06445
}

Semantic roles & 50–950 ramp

primary
#371FD2
secondary
#C8D478
accent
#F137D8
background
#F9F6FE
surface
#F2EBFC
border
#CCC6D5
text
#0E0616
muted
#7E7A84

Preview Lab

Preview with #371FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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