#391772#391772

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

Color values

HEX#391772
RGBrgb(57, 23, 114)
HSLhsl(262, 66%, 27%)
HSVhsv(262, 80%, 45%)
CMYKcmyk(50%, 79.8%, 0%, 55.3%)
CIE-LABlab(18.79, 37.77, -45.94)
CIE-LCHlch(18.79, 59.47, 309.43°)
OKLaboklab(31.7% 0.057 -0.1318)
OKLCHoklch(31.7% 0.144 293.4)
XYZxyz(5.0302, 2.6974, 16.1719)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391772 #507217
analogous
#172272 #391772 #671772
triadic
#391772 #723917 #177239
tetradic
#391772 #721722 #507217 #177267
square
#391772 #721722 #507217 #177267
split-complementary
#391772 #726717 #227217
monochromatic
#0D0519 #200D3F #391772 #5221A5 #6D2ED5

Accessibility & contrast

On white

13.64
#391772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391772
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391772#FFFFFF#000000##FFFFFF
##3917721.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #391772;
/* rgb */ color: rgb(57, 23, 114);
/* oklch */ color: oklch(31.7% 0.144 293.4);
Tailwind
colors: {
  custom: {
    50: '#76589b',
    500: '#391772',
    950: '#000000',
  },
}
SCSS
$custom: #391772;
$custom-light: #76589b;
$custom-dark: #000000;
JSON
{
  "hex": "#391772",
  "rgb": {
    "r": 57,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 262.418,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31697,
    "c": 0.1436,
    "h": 293.4
  },
  "luminance": 0.02698
}

Semantic roles & 50–950 ramp

primary
#391772
secondary
#80A83D
accent
#E93EA9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #391772

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

Preview Lab → · Contrast checker → · Palette generator →

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