#391F74#391F74

#391F74 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.137 H 291.0°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#391F74
RGBrgb(57, 31, 116)
HSLhsl(258, 58%, 29%)
HSVhsv(258, 73%, 45%)
CMYKcmyk(50.9%, 73.3%, 0%, 54.5%)
CIE-LABlab(20.48, 34.12, -44.45)
CIE-LCHlch(20.48, 56.04, 307.51°)
OKLaboklab(32.95% 0.049 -0.1275)
OKLCHoklch(32.95% 0.137 291)
XYZxyz(5.3288, 3.1106, 16.8392)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F74 #5A741F
analogous
#1F3074 #391F74 #641F74
triadic
#391F74 #74391F #1F7439
tetradic
#391F74 #741F30 #5A741F #1F7464
square
#391F74 #741F30 #5A741F #1F7464
split-complementary
#391F74 #74641F #30741F
monochromatic
#0C0618 #211244 #391F74 #512CA4 #6C41CC

Accessibility & contrast

On white

12.95
#391F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#391F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F74
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F74#FFFFFF#000000##FFFFFF
##391F741.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#263547
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #391f74;
/* rgb */ color: rgb(57, 31, 116);
/* oklch */ color: oklch(33.0% 0.137 291.0);
Tailwind
colors: {
  custom: {
    50: '#765d9d',
    500: '#391f74',
    950: '#000000',
  },
}
SCSS
$custom: #391f74;
$custom-light: #765d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#391f74",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 258.353,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32951,
    "c": 0.13658,
    "h": 291
  },
  "luminance": 0.03111
}

Semantic roles & 50–950 ramp

primary
#391F74
secondary
#8AA847
accent
#E147B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #391F74

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

Preview Lab → · Contrast checker → · Palette generator →

#391F74 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva