#371972#371972

#371972 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.141 H 291.6°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#371972
RGBrgb(55, 25, 114)
HSLhsl(260, 64%, 27%)
HSVhsv(260, 78%, 45%)
CMYKcmyk(51.8%, 78.1%, 0%, 55.3%)
CIE-LABlab(18.90, 36.43, -45.77)
CIE-LCHlch(18.90, 58.50, 308.52°)
OKLaboklab(31.72% 0.052 -0.1314)
OKLCHoklch(31.72% 0.141 291.6)
XYZxyz(4.9596, 2.7222, 16.1804)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371972 #547219
analogous
#192772 #371972 #641972
triadic
#371972 #723719 #197237
tetradic
#371972 #721927 #547219 #197264
square
#371972 #721927 #547219 #197264
split-complementary
#371972 #726419 #277219
monochromatic
#0C0619 #1F0E40 #371972 #4F24A4 #6933D2

Accessibility & contrast

On white

13.60
#371972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371972
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371972#FFFFFF#000000##FFFFFF
##3719721.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.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: #371972;
/* rgb */ color: rgb(55, 25, 114);
/* oklch */ color: oklch(31.7% 0.141 291.6);
Tailwind
colors: {
  custom: {
    50: '#75599b',
    500: '#371972',
    950: '#000000',
  },
}
SCSS
$custom: #371972;
$custom-light: #75599b;
$custom-dark: #000000;
JSON
{
  "hex": "#371972",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 260.225,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31715,
    "c": 0.14131,
    "h": 291.6
  },
  "luminance": 0.02722
}

Semantic roles & 50–950 ramp

primary
#371972
secondary
#84A740
accent
#E741AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371972

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

Preview Lab → · Contrast checker → · Palette generator →

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