#391770#391770

#391770 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.141 H 294.1°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#391770
RGBrgb(57, 23, 112)
HSLhsl(263, 66%, 26%)
HSVhsv(263, 79%, 44%)
CMYKcmyk(49.1%, 79.5%, 0%, 56.1%)
CIE-LABlab(18.59, 37.20, -44.96)
CIE-LCHlch(18.59, 58.35, 309.60°)
OKLaboklab(31.5% 0.0576 -0.1289)
OKLCHoklch(31.5% 0.141 294.1)
XYZxyz(4.9176, 2.6524, 15.5789)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391770 #4E7017
analogous
#172270 #391770 #661770
triadic
#391770 #703917 #177039
tetradic
#391770 #701722 #4E7017 #177066
square
#391770 #701722 #4E7017 #177066
split-complementary
#391770 #706617 #227017
monochromatic
#0D0519 #1F0D3D #391770 #5321A3 #6D2DD4

Accessibility & contrast

On white

13.72
#391770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#391770 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391770
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391770#FFFFFF#000000##FFFFFF
##3917701.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E73
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#292F43
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #391770;
/* rgb */ color: rgb(57, 23, 112);
/* oklch */ color: oklch(31.5% 0.141 294.1);
Tailwind
colors: {
  custom: {
    50: '#76589a',
    500: '#391770',
    950: '#000000',
  },
}
SCSS
$custom: #391770;
$custom-light: #76589a;
$custom-dark: #000000;
JSON
{
  "hex": "#391770",
  "rgb": {
    "r": 57,
    "g": 23,
    "b": 112
  },
  "hsl": {
    "h": 262.921,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31501,
    "c": 0.14122,
    "h": 294.1
  },
  "luminance": 0.02653
}

Semantic roles & 50–950 ramp

primary
#391770
secondary
#7EA63D
accent
#E93FA8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #391770

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

Preview Lab → · Contrast checker → · Palette generator →

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