#391874#391874

#391874 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.145 H 292.5°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#391874
RGBrgb(57, 24, 116)
HSLhsl(262, 66%, 27%)
HSVhsv(262, 79%, 45%)
CMYKcmyk(50.9%, 79.3%, 0%, 54.5%)
CIE-LABlab(19.16, 37.85, -46.62)
CIE-LCHlch(19.16, 60.06, 309.07°)
OKLaboklab(32.02% 0.0556 -0.1338)
OKLCHoklch(32.02% 0.145 292.5)
XYZxyz(5.1655, 2.7839, 16.7848)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391874 #537418
analogous
#182574 #391874 #671874
triadic
#391874 #743918 #187439
tetradic
#391874 #741825 #537418 #187467
square
#391874 #741825 #537418 #187467
split-complementary
#391874 #746718 #257418
monochromatic
#0C0519 #200E41 #391874 #5222A7 #6C32D5

Accessibility & contrast

On white

13.49
#391874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#391874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391874
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391874#FFFFFF#000000##FFFFFF
##3918741.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#263145
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #391874;
/* rgb */ color: rgb(57, 24, 116);
/* oklch */ color: oklch(32.0% 0.145 292.5);
Tailwind
colors: {
  custom: {
    50: '#76599d',
    500: '#391874',
    950: '#000000',
  },
}
SCSS
$custom: #391874;
$custom-light: #76599d;
$custom-dark: #000000;
JSON
{
  "hex": "#391874",
  "rgb": {
    "r": 57,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 261.522,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32015,
    "c": 0.14489,
    "h": 292.5
  },
  "luminance": 0.02784
}

Semantic roles & 50–950 ramp

primary
#391874
secondary
#83A93F
accent
#E93FAC
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #391874

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

Preview Lab → · Contrast checker → · Palette generator →

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