#371DB3#371DB3

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

Color values

HEX#371DB3
RGBrgb(55, 29, 179)
HSLhsl(250, 72%, 41%)
HSVhsv(250, 84%, 70%)
CMYKcmyk(69.3%, 83.8%, 0%, 29.8%)
CIE-LABlab(26.58, 53.69, -73.39)
CIE-LCHlch(26.58, 90.93, 306.19°)
OKLaboklab(39.13% 0.029 -0.212)
OKLCHoklch(39.13% 0.214 277.8)
XYZxyz(10.1490, 4.9447, 43.0587)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371DB3 #99B31D
analogous
#1D4EB3 #371DB3 #821DB3
triadic
#371DB3 #B3371D #1DB337
tetradic
#371DB3 #B31D4E #99B31D #1DB382
square
#371DB3 #B31D4E #99B31D #1DB382
split-complementary
#371DB3 #B3821D #4EB31D
monochromatic
#170C4A #27147E #371DB3 #4E30DD #7B64E6

Accessibility & contrast

On white

10.56
#371DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#371DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371DB3
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371DB3#FFFFFF#000000##FFFFFF
##371DB31.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0039B0
Tritanopia (blue-blind)
#004D6B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #371db3;
/* rgb */ color: rgb(55, 29, 179);
/* oklch */ color: oklch(39.1% 0.214 277.8);
Tailwind
colors: {
  custom: {
    50: '#8160cb',
    500: '#371db3',
    950: '#000000',
  },
}
SCSS
$custom: #371db3;
$custom-light: #8160cb;
$custom-dark: #000000;
JSON
{
  "hex": "#371db3",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 179
  },
  "hsl": {
    "h": 250.4,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39133,
    "c": 0.21398,
    "h": 277.8
  },
  "luminance": 0.04946
}

Semantic roles & 50–950 ramp

primary
#371DB3
secondary
#B9CB61
accent
#EF39CF
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #371DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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