#391754#391754

#391754 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.0% C 0.107 H 306.4°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#391754
RGBrgb(57, 23, 84)
HSLhsl(273, 57%, 21%)
HSVhsv(273, 73%, 33%)
CMYKcmyk(32.1%, 72.6%, 0%, 67.1%)
CIE-LABlab(16.12, 29.37, -30.45)
CIE-LCHlch(16.12, 42.31, 313.96°)
OKLaboklab(28.98% 0.0636 -0.0863)
OKLCHoklch(28.98% 0.107 306.4)
XYZxyz(3.5936, 2.1228, 8.6062)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391754 #325417
analogous
#1B1754 #391754 #541750
triadic
#391754 #543917 #175439
tetradic
#391754 #541B17 #325417 #175054
square
#391754 #541B17 #325417 #175054
split-complementary
#391754 #505417 #17541B
monochromatic
#100718 #180A24 #391754 #5A2484 #7A31B4

Accessibility & contrast

On white

14.74
#391754 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#391754 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391754
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391754#FFFFFF#000000##FFFFFF
##3917541.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002756
Deuteranopia (green-blind)
#072853
Tritanopia (blue-blind)
#342433
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #391754;
/* rgb */ color: rgb(57, 23, 84);
/* oklch */ color: oklch(29.0% 0.107 306.4);
Tailwind
colors: {
  custom: {
    50: '#725785',
    500: '#391754',
    950: '#000000',
  },
}
SCSS
$custom: #391754;
$custom-light: #725785;
$custom-dark: #000000;
JSON
{
  "hex": "#391754",
  "rgb": {
    "r": 57,
    "g": 23,
    "b": 84
  },
  "hsl": {
    "h": 273.443,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28975,
    "c": 0.10722,
    "h": 306.4
  },
  "luminance": 0.02123
}

Semantic roles & 50–950 ramp

primary
#391754
secondary
#5F8B3C
accent
#E0488B
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #391754

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

Preview Lab → · Contrast checker → · Palette generator →

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