#391174#391174

#391174 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.152 H 293.7°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#391174
RGBrgb(57, 17, 116)
HSLhsl(264, 74%, 26%)
HSVhsv(264, 85%, 45%)
CMYKcmyk(50.9%, 85.3%, 0%, 54.5%)
CIE-LABlab(18.06, 41.02, -48.42)
CIE-LCHlch(18.06, 63.47, 310.27°)
OKLaboklab(31.25% 0.0611 -0.139)
OKLCHoklch(31.25% 0.152 293.7)
XYZxyz(5.0393, 2.5315, 16.7427)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391174 #4C7411
analogous
#111B74 #391174 #6A1174
triadic
#391174 #743911 #117439
tetradic
#391174 #74111B #4C7411 #11746A
square
#391174 #74111B #4C7411 #11746A
split-complementary
#391174 #746A11 #1B7411
monochromatic
#0D041B #1F093F #391174 #5319A9 #6E21DE

Accessibility & contrast

On white

13.94
#391174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#391174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391174
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391174#FFFFFF#000000##FFFFFF
##3911741.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#262E44
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #391174;
/* rgb */ color: rgb(57, 17, 116);
/* oklch */ color: oklch(31.3% 0.152 293.7);
Tailwind
colors: {
  custom: {
    50: '#77559d',
    500: '#391174',
    950: '#000000',
  },
}
SCSS
$custom: #391174;
$custom-light: #77559d;
$custom-dark: #000000;
JSON
{
  "hex": "#391174",
  "rgb": {
    "r": 57,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 264.242,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31252,
    "c": 0.15184,
    "h": 293.7
  },
  "luminance": 0.02532
}

Semantic roles & 50–950 ramp

primary
#391174
secondary
#7CAB36
accent
#F137A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #391174

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

Preview Lab → · Contrast checker → · Palette generator →

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