#371B72#371B72

#371B72 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.139 H 291.2°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#371B72
RGBrgb(55, 27, 114)
HSLhsl(259, 62%, 28%)
HSVhsv(259, 76%, 45%)
CMYKcmyk(51.8%, 76.3%, 0%, 55.3%)
CIE-LABlab(19.27, 35.37, -45.16)
CIE-LCHlch(19.27, 57.36, 308.07°)
OKLaboklab(31.98% 0.0502 -0.1296)
OKLCHoklch(31.98% 0.139 291.2)
XYZxyz(5.0039, 2.8108, 16.1952)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B72 #56721B
analogous
#1B2B72 #371B72 #621B72
triadic
#371B72 #72371B #1B7237
tetradic
#371B72 #721B2B #56721B #1B7262
square
#371B72 #721B2B #56721B #1B7262
split-complementary
#371B72 #72621B #2B721B
monochromatic
#0C0619 #1F0F41 #371B72 #4F27A3 #6938D0

Accessibility & contrast

On white

13.44
#371B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371B72
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B72#FFFFFF#000000##FFFFFF
##371B721.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#233245
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #371b72;
/* rgb */ color: rgb(55, 27, 114);
/* oklch */ color: oklch(32.0% 0.139 291.2);
Tailwind
colors: {
  custom: {
    50: '#755a9b',
    500: '#371b72',
    950: '#000000',
  },
}
SCSS
$custom: #371b72;
$custom-light: #755a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#371b72",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 259.31,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31979,
    "c": 0.13897,
    "h": 291.2
  },
  "luminance": 0.02811
}

Semantic roles & 50–950 ramp

primary
#371B72
secondary
#86A742
accent
#E543B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371B72

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

Preview Lab → · Contrast checker → · Palette generator →

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