#391254#391254

#391254 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.3% C 0.114 H 307.5°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#391254
RGBrgb(57, 18, 84)
HSLhsl(275, 65%, 20%)
HSVhsv(275, 79%, 33%)
CMYKcmyk(32.1%, 78.6%, 0%, 67.1%)
CIE-LABlab(15.18, 31.99, -31.97)
CIE-LCHlch(15.18, 45.23, 315.02°)
OKLaboklab(28.31% 0.0697 -0.0907)
OKLCHoklch(28.31% 0.114 307.5)
XYZxyz(3.5035, 1.9426, 8.5762)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391254 #2D5412
analogous
#181254 #391254 #54124E
triadic
#391254 #543912 #125439
tetradic
#391254 #541812 #2D5412 #124E54
square
#391254 #541812 #2D5412 #124E54
split-complementary
#391254 #4E5412 #125418
monochromatic
#110519 #170722 #391254 #5B1D86 #7D28B9

Accessibility & contrast

On white

15.12
#391254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391254
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391254#FFFFFF#000000##FFFFFF
##3912541.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#002653
Tritanopia (blue-blind)
#352132
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #391254;
/* rgb */ color: rgb(57, 18, 84);
/* oklch */ color: oklch(28.3% 0.114 307.5);
Tailwind
colors: {
  custom: {
    50: '#735485',
    500: '#391254',
    950: '#000000',
  },
}
SCSS
$custom: #391254;
$custom-light: #735485;
$custom-dark: #000000;
JSON
{
  "hex": "#391254",
  "rgb": {
    "r": 57,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 275.455,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.28307,
    "c": 0.11441,
    "h": 307.5
  },
  "luminance": 0.01943
}

Semantic roles & 50–950 ramp

primary
#391254
secondary
#598D35
accent
#E84085
background
#F7F5F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #391254

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

Preview Lab → · Contrast checker → · Palette generator →

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