#391162#391162

#391162 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.132 H 300.7°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#391162
RGBrgb(57, 17, 98)
HSLhsl(270, 70%, 23%)
HSVhsv(270, 83%, 38%)
CMYKcmyk(41.8%, 82.7%, 0%, 61.6%)
CIE-LABlab(16.27, 36.15, -39.59)
CIE-LCHlch(16.27, 53.61, 312.40°)
OKLaboklab(29.46% 0.0672 -0.1131)
OKLCHoklch(29.46% 0.132 300.7)
XYZxyz(4.0919, 2.1526, 11.7528)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391162 #3A6211
analogous
#111162 #391162 #621162
triadic
#391162 #623911 #116239
tetradic
#391162 #621111 #3A6211 #116262
square
#391162 #621111 #3A6211 #116262
split-complementary
#391162 #626211 #116211
monochromatic
#0F051A #1B082E #391162 #571A96 #7623CA

Accessibility & contrast

On white

14.68
#391162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#391162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391162
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391162#FFFFFF#000000##FFFFFF
##3911621.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002864
Deuteranopia (green-blind)
#002860
Tritanopia (blue-blind)
#302739
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #391162;
/* rgb */ color: rgb(57, 17, 98);
/* oklch */ color: oklch(29.5% 0.132 300.7);
Tailwind
colors: {
  custom: {
    50: '#74548f',
    500: '#391162',
    950: '#000000',
  },
}
SCSS
$custom: #391162;
$custom-light: #74548f;
$custom-dark: #000000;
JSON
{
  "hex": "#391162",
  "rgb": {
    "r": 57,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 269.63,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29461,
    "c": 0.13159,
    "h": 300.7
  },
  "luminance": 0.02153
}

Semantic roles & 50–950 ramp

primary
#391162
secondary
#689A34
accent
#ED3B95
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #391162

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

Preview Lab → · Contrast checker → · Palette generator →

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