#391857#391857

#391857 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.4% C 0.109 H 304.5°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#391857
RGBrgb(57, 24, 87)
HSLhsl(271, 57%, 22%)
HSVhsv(271, 72%, 34%)
CMYKcmyk(34.5%, 72.4%, 0%, 65.9%)
CIE-LABlab(16.56, 29.63, -31.77)
CIE-LCHlch(16.56, 43.44, 313.01°)
OKLaboklab(29.37% 0.062 -0.0902)
OKLCHoklch(29.37% 0.109 304.5)
XYZxyz(3.7339, 2.2113, 9.2451)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391857 #365718
analogous
#1A1857 #391857 #571856
triadic
#391857 #573918 #185739
tetradic
#391857 #571A18 #365718 #185657
square
#391857 #571A18 #365718 #185657
split-complementary
#391857 #565718 #18571A
monochromatic
#100718 #1A0B27 #391857 #582587 #7832B7

Accessibility & contrast

On white

14.56
#391857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#391857 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391857
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391857#FFFFFF#000000##FFFFFF
##3918571.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002859
Deuteranopia (green-blind)
#042956
Tritanopia (blue-blind)
#332635
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #391857;
/* rgb */ color: rgb(57, 24, 87);
/* oklch */ color: oklch(29.4% 0.109 304.5);
Tailwind
colors: {
  custom: {
    50: '#725787',
    500: '#391857',
    950: '#000000',
  },
}
SCSS
$custom: #391857;
$custom-light: #725787;
$custom-dark: #000000;
JSON
{
  "hex": "#391857",
  "rgb": {
    "r": 57,
    "g": 24,
    "b": 87
  },
  "hsl": {
    "h": 271.429,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29367,
    "c": 0.10942,
    "h": 304.5
  },
  "luminance": 0.02211
}

Semantic roles & 50–950 ramp

primary
#391857
secondary
#638E3D
accent
#E04890
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #391857

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

Preview Lab → · Contrast checker → · Palette generator →

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