#371872#371872

#371872 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.142 H 291.8°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#371872
RGBrgb(55, 24, 114)
HSLhsl(261, 65%, 27%)
HSVhsv(261, 79%, 45%)
CMYKcmyk(51.8%, 78.9%, 0%, 55.3%)
CIE-LABlab(18.71, 36.94, -46.07)
CIE-LCHlch(18.71, 59.05, 308.73°)
OKLaboklab(31.59% 0.0529 -0.1323)
OKLCHoklch(31.59% 0.142 291.8)
XYZxyz(4.9386, 2.6802, 16.1734)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371872 #537218
analogous
#182672 #371872 #641872
triadic
#371872 #723718 #187237
tetradic
#371872 #721826 #537218 #187264
square
#371872 #721826 #537218 #187264
split-complementary
#371872 #726418 #267218
monochromatic
#0C0519 #1F0D3F #371872 #4F23A5 #6931D4

Accessibility & contrast

On white

13.67
#371872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#371872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371872
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371872#FFFFFF#000000##FFFFFF
##3718721.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#233144
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #371872;
/* rgb */ color: rgb(55, 24, 114);
/* oklch */ color: oklch(31.6% 0.142 291.8);
Tailwind
colors: {
  custom: {
    50: '#75599b',
    500: '#371872',
    950: '#000000',
  },
}
SCSS
$custom: #371872;
$custom-light: #75599b;
$custom-dark: #000000;
JSON
{
  "hex": "#371872",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 260.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31588,
    "c": 0.14244,
    "h": 291.8
  },
  "luminance": 0.0268
}

Semantic roles & 50–950 ramp

primary
#371872
secondary
#83A73E
accent
#E840AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371872

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

Preview Lab → · Contrast checker → · Palette generator →

#371872 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva