#391B63#391B63

#391B63 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.8% C 0.120 H 298.1°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#391B63
RGBrgb(57, 27, 99)
HSLhsl(265, 57%, 25%)
HSVhsv(265, 73%, 39%)
CMYKcmyk(42.4%, 72.7%, 0%, 61.2%)
CIE-LABlab(18.16, 31.33, -37.16)
CIE-LCHlch(18.16, 48.61, 310.13°)
OKLaboklab(30.83% 0.0565 -0.1061)
OKLCHoklch(30.83% 0.12 298.1)
XYZxyz(4.3308, 2.5545, 12.0669)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B63 #45631B
analogous
#1B2163 #391B63 #5D1B63
triadic
#391B63 #63391B #1B6339
tetradic
#391B63 #631B21 #45631B #1B635D
square
#391B63 #631B21 #45631B #1B635D
split-complementary
#391B63 #635D1B #21631B
monochromatic
#0E0718 #1D0E33 #391B63 #552893 #7035C3

Accessibility & contrast

On white

13.90
#391B63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#391B63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B63
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B63#FFFFFF#000000##FFFFFF
##391B631.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C65
Deuteranopia (green-blind)
#002C62
Tritanopia (blue-blind)
#2F2C3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #391b63;
/* rgb */ color: rgb(57, 27, 99);
/* oklch */ color: oklch(30.8% 0.120 298.1);
Tailwind
colors: {
  custom: {
    50: '#745a90',
    500: '#391b63',
    950: '#000000',
  },
}
SCSS
$custom: #391b63;
$custom-light: #745a90;
$custom-dark: #000000;
JSON
{
  "hex": "#391b63",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 99
  },
  "hsl": {
    "h": 265,
    "s": 57.143,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30829,
    "c": 0.12018,
    "h": 298.1
  },
  "luminance": 0.02555
}

Semantic roles & 50–950 ramp

primary
#391B63
secondary
#749841
accent
#E047A1
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #391B63

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

Preview Lab → · Contrast checker → · Palette generator →

#391B63 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva