#371B71#371B71

#371B71 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.138 H 291.5°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#371B71
RGBrgb(55, 27, 113)
HSLhsl(260, 61%, 27%)
HSVhsv(260, 76%, 44%)
CMYKcmyk(51.3%, 76.1%, 0%, 55.7%)
CIE-LABlab(19.17, 35.07, -44.67)
CIE-LCHlch(19.17, 56.79, 308.14°)
OKLaboklab(31.88% 0.0504 -0.1282)
OKLCHoklch(31.88% 0.138 291.5)
XYZxyz(4.9473, 2.7882, 15.8971)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B71 #55711B
analogous
#1B2A71 #371B71 #621B71
triadic
#371B71 #71371B #1B7137
tetradic
#371B71 #711B2A #55711B #1B7162
square
#371B71 #711B2A #55711B #1B7162
split-complementary
#371B71 #71621B #2A711B
monochromatic
#0C0619 #1F0F40 #371B71 #4F27A2 #6937CF

Accessibility & contrast

On white

13.48
#371B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#371B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B71
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B71#FFFFFF#000000##FFFFFF
##371B711.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#243244
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #371b71;
/* rgb */ color: rgb(55, 27, 113);
/* oklch */ color: oklch(31.9% 0.138 291.5);
Tailwind
colors: {
  custom: {
    50: '#745a9b',
    500: '#371b71',
    950: '#000000',
  },
}
SCSS
$custom: #371b71;
$custom-light: #745a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#371b71",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 259.535,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31883,
    "c": 0.13772,
    "h": 291.5
  },
  "luminance": 0.02788
}

Semantic roles & 50–950 ramp

primary
#371B71
secondary
#85A642
accent
#E543B0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371B71

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

Preview Lab → · Contrast checker → · Palette generator →

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