#391257#391257

#391257 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.118 H 305.9°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#391257
RGBrgb(57, 18, 87)
HSLhsl(274, 66%, 21%)
HSVhsv(274, 79%, 34%)
CMYKcmyk(34.5%, 79.3%, 0%, 65.9%)
CIE-LABlab(15.44, 32.77, -33.59)
CIE-LCHlch(15.44, 46.93, 314.30°)
OKLaboklab(28.57% 0.0691 -0.0955)
OKLCHoklch(28.57% 0.118 305.9)
XYZxyz(3.6236, 1.9906, 9.2083)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391257 #305712
analogous
#161257 #391257 #571252
triadic
#391257 #573912 #125739
tetradic
#391257 #571612 #305712 #125257
square
#391257 #571612 #305712 #125257
split-complementary
#391257 #525712 #125716
monochromatic
#110519 #180824 #391257 #5A1C8A #7B27BC

Accessibility & contrast

On white

15.02
#391257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391257
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391257#FFFFFF#000000##FFFFFF
##3912571.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002756
Tritanopia (blue-blind)
#342333
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #391257;
/* rgb */ color: rgb(57, 18, 87);
/* oklch */ color: oklch(28.6% 0.118 305.9);
Tailwind
colors: {
  custom: {
    50: '#735487',
    500: '#391257',
    950: '#000000',
  },
}
SCSS
$custom: #391257;
$custom-light: #735487;
$custom-dark: #000000;
JSON
{
  "hex": "#391257",
  "rgb": {
    "r": 57,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 273.913,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28568,
    "c": 0.11786,
    "h": 305.9
  },
  "luminance": 0.01991
}

Semantic roles & 50–950 ramp

primary
#391257
secondary
#5C9035
accent
#E93F89
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #391257

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

Preview Lab → · Contrast checker → · Palette generator →

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