#331547#331547

#331547 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.092 H 309.1°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#331547
RGBrgb(51, 21, 71)
HSLhsl(276, 54%, 18%)
HSVhsv(276, 70%, 28%)
CMYKcmyk(28.2%, 70.4%, 0%, 72.2%)
CIE-LABlab(13.80, 25.44, -25.32)
CIE-LCHlch(13.80, 35.89, 315.13°)
OKLaboklab(26.79% 0.0581 -0.0715)
OKLCHoklch(26.79% 0.092 309.1)
XYZxyz(2.7705, 1.6951, 6.1413)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331547 #294715
analogous
#1A1547 #331547 #471542
triadic
#331547 #473315 #154733
tetradic
#331547 #471A15 #294715 #154247
square
#331547 #471A15 #294715 #154247
split-complementary
#331547 #424715 #15471A
monochromatic
#110718 #110718 #331547 #552376 #7731A5

Accessibility & contrast

On white

15.68
#331547 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#331547 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331547
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331547#FFFFFF#000000##FFFFFF
##3315471.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002249
Deuteranopia (green-blind)
#0E2446
Tritanopia (blue-blind)
#301F2B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331547;
/* rgb */ color: rgb(51, 21, 71);
/* oklch */ color: oklch(26.8% 0.092 309.1);
Tailwind
colors: {
  custom: {
    50: '#6d547a',
    500: '#331547',
    950: '#000000',
  },
}
SCSS
$custom: #331547;
$custom-light: #6d547a;
$custom-dark: #000000;
JSON
{
  "hex": "#331547",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 71
  },
  "hsl": {
    "h": 276,
    "s": 54.348,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26788,
    "c": 0.09213,
    "h": 309.1
  },
  "luminance": 0.01695
}

Semantic roles & 50–950 ramp

primary
#331547
secondary
#557F39
accent
#DE4A85
background
#F6F4F7
surface
#ECE8ED
border
#C7C4C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331547

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

Preview Lab → · Contrast checker → · Palette generator →

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