#391256#391256

#391256 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.117 H 306.4°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#391256
RGBrgb(57, 18, 86)
HSLhsl(274, 65%, 20%)
HSVhsv(274, 79%, 34%)
CMYKcmyk(33.7%, 79.1%, 0%, 66.3%)
CIE-LABlab(15.35, 32.51, -33.05)
CIE-LCHlch(15.35, 46.36, 314.53°)
OKLaboklab(28.48% 0.0693 -0.0939)
OKLCHoklch(28.48% 0.117 306.4)
XYZxyz(3.5830, 1.9744, 8.9946)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391256 #2F5612
analogous
#171256 #391256 #561251
triadic
#391256 #563912 #125639
tetradic
#391256 #561712 #2F5612 #125156
square
#391256 #561712 #2F5612 #125156
split-complementary
#391256 #515612 #125617
monochromatic
#110519 #170723 #391256 #5B1D89 #7C27BB

Accessibility & contrast

On white

15.06
#391256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#391256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391256
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391256#FFFFFF#000000##FFFFFF
##3912561.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002755
Tritanopia (blue-blind)
#342233
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #391256;
/* rgb */ color: rgb(57, 18, 86);
/* oklch */ color: oklch(28.5% 0.117 306.4);
Tailwind
colors: {
  custom: {
    50: '#735486',
    500: '#391256',
    950: '#000000',
  },
}
SCSS
$custom: #391256;
$custom-light: #735486;
$custom-dark: #000000;
JSON
{
  "hex": "#391256",
  "rgb": {
    "r": 57,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 274.412,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.2848,
    "c": 0.11671,
    "h": 306.4
  },
  "luminance": 0.01974
}

Semantic roles & 50–950 ramp

primary
#391256
secondary
#5B8F35
accent
#E83F87
background
#F7F5F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #391256

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

Preview Lab → · Contrast checker → · Palette generator →

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