#391872#391872

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

Color values

HEX#391872
RGBrgb(57, 24, 114)
HSLhsl(262, 65%, 27%)
HSVhsv(262, 79%, 45%)
CMYKcmyk(50%, 78.9%, 0%, 55.3%)
CIE-LABlab(18.96, 37.28, -45.65)
CIE-LCHlch(18.96, 58.94, 309.23°)
OKLaboklab(31.82% 0.0561 -0.131)
OKLCHoklch(31.82% 0.143 293.2)
XYZxyz(5.0504, 2.7379, 16.1787)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391872 #517218
analogous
#182472 #391872 #661872
triadic
#391872 #723918 #187239
tetradic
#391872 #721824 #517218 #187266
square
#391872 #721824 #517218 #187266
split-complementary
#391872 #726618 #247218
monochromatic
#0D0519 #200D3F #391872 #5223A5 #6C31D4

Accessibility & contrast

On white

13.57
#391872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#391872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391872
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391872#FFFFFF#000000##FFFFFF
##3918721.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.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: #391872;
/* rgb */ color: rgb(57, 24, 114);
/* oklch */ color: oklch(31.8% 0.142 293.2);
Tailwind
colors: {
  custom: {
    50: '#76599b',
    500: '#391872',
    950: '#000000',
  },
}
SCSS
$custom: #391872;
$custom-light: #76599b;
$custom-dark: #000000;
JSON
{
  "hex": "#391872",
  "rgb": {
    "r": 57,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 262,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31818,
    "c": 0.1425,
    "h": 293.2
  },
  "luminance": 0.02738
}

Semantic roles & 50–950 ramp

primary
#391872
secondary
#81A73E
accent
#E840AA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #391872

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

Preview Lab → · Contrast checker → · Palette generator →

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