#391758#391758

#391758 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.3% C 0.112 H 304.2°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#391758
RGBrgb(57, 23, 88)
HSLhsl(271, 59%, 22%)
HSVhsv(271, 74%, 35%)
CMYKcmyk(35.2%, 73.9%, 0%, 65.5%)
CIE-LABlab(16.44, 30.46, -32.63)
CIE-LCHlch(16.44, 44.64, 313.03°)
OKLaboklab(29.31% 0.0631 -0.0927)
OKLCHoklch(29.31% 0.112 304.2)
XYZxyz(3.7548, 2.1872, 9.4550)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391758 #365817
analogous
#191758 #391758 #581757
triadic
#391758 #583917 #175839
tetradic
#391758 #581917 #365817 #175758
square
#391758 #581917 #365817 #175758
split-complementary
#391758 #575817 #175819
monochromatic
#100618 #1A0A27 #391758 #582489 #7830B9

Accessibility & contrast

On white

14.61
#391758 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391758
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391758#FFFFFF#000000##FFFFFF
##3917581.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#012957
Tritanopia (blue-blind)
#332635
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #391758;
/* rgb */ color: rgb(57, 23, 88);
/* oklch */ color: oklch(29.3% 0.112 304.2);
Tailwind
colors: {
  custom: {
    50: '#735788',
    500: '#391758',
    950: '#000000',
  },
}
SCSS
$custom: #391758;
$custom-light: #735788;
$custom-dark: #000000;
JSON
{
  "hex": "#391758",
  "rgb": {
    "r": 57,
    "g": 23,
    "b": 88
  },
  "hsl": {
    "h": 271.385,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29307,
    "c": 0.11215,
    "h": 304.2
  },
  "luminance": 0.02187
}

Semantic roles & 50–950 ramp

primary
#391758
secondary
#638F3C
accent
#E24690
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #391758

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

Preview Lab → · Contrast checker → · Palette generator →

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