#391957#391957

#391957 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.5% C 0.108 H 304.2°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#391957
RGBrgb(57, 25, 87)
HSLhsl(271, 55%, 22%)
HSVhsv(271, 71%, 34%)
CMYKcmyk(34.5%, 71.3%, 0%, 65.9%)
CIE-LABlab(16.76, 29.07, -31.44)
CIE-LCHlch(16.76, 42.82, 312.76°)
OKLaboklab(29.51% 0.0607 -0.0892)
OKLCHoklch(29.51% 0.108 304.2)
XYZxyz(3.7549, 2.2533, 9.2521)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391957 #375719
analogous
#1A1957 #391957 #571956
triadic
#391957 #573919 #195739
tetradic
#391957 #571A19 #375719 #195657
square
#391957 #571A19 #375719 #195657
split-complementary
#391957 #565719 #19571A
monochromatic
#100718 #1A0B27 #391957 #582787 #7734B6

Accessibility & contrast

On white

14.48
#391957 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#391957 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391957
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391957#FFFFFF#000000##FFFFFF
##3919571.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#052956
Tritanopia (blue-blind)
#332735
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #391957;
/* rgb */ color: rgb(57, 25, 87);
/* oklch */ color: oklch(29.5% 0.108 304.2);
Tailwind
colors: {
  custom: {
    50: '#725887',
    500: '#391957',
    950: '#000000',
  },
}
SCSS
$custom: #391957;
$custom-light: #725887;
$custom-dark: #000000;
JSON
{
  "hex": "#391957",
  "rgb": {
    "r": 57,
    "g": 25,
    "b": 87
  },
  "hsl": {
    "h": 270.968,
    "s": 55.357,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29514,
    "c": 0.1079,
    "h": 304.2
  },
  "luminance": 0.02253
}

Semantic roles & 50–950 ramp

primary
#391957
secondary
#658D3E
accent
#DF4991
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #391957

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

Preview Lab → · Contrast checker → · Palette generator →

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