#391158#391158

#391158 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.120 H 305.6°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#391158
RGBrgb(57, 17, 88)
HSLhsl(274, 68%, 21%)
HSVhsv(274, 81%, 35%)
CMYKcmyk(35.2%, 80.7%, 0%, 65.5%)
CIE-LABlab(15.36, 33.51, -34.39)
CIE-LCHlch(15.36, 48.02, 314.26°)
OKLaboklab(28.54% 0.0699 -0.0978)
OKLCHoklch(28.54% 0.12 305.6)
XYZxyz(3.6489, 1.9754, 9.4197)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391158 #305811
analogous
#151158 #391158 #581153
triadic
#391158 #583911 #115839
tetradic
#391158 #581511 #305811 #115358
square
#391158 #581511 #305811 #115358
split-complementary
#391158 #535811 #115815
monochromatic
#11051A #180725 #391158 #5A1B8B #7B25BF

Accessibility & contrast

On white

15.05
#391158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#391158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391158
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391158#FFFFFF#000000##FFFFFF
##3911581.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002757
Tritanopia (blue-blind)
#332334
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #391158;
/* rgb */ color: rgb(57, 17, 88);
/* oklch */ color: oklch(28.5% 0.120 305.6);
Tailwind
colors: {
  custom: {
    50: '#735488',
    500: '#391158',
    950: '#000000',
  },
}
SCSS
$custom: #391158;
$custom-light: #735488;
$custom-dark: #000000;
JSON
{
  "hex": "#391158",
  "rgb": {
    "r": 57,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 273.803,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28538,
    "c": 0.12026,
    "h": 305.6
  },
  "luminance": 0.01975
}

Semantic roles & 50–950 ramp

primary
#391158
secondary
#5C9134
accent
#EA3D89
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #391158

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

Preview Lab → · Contrast checker → · Palette generator →

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