#331447#331447

#331447 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.094 H 309.4°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#331447
RGBrgb(51, 20, 71)
HSLhsl(276, 56%, 18%)
HSVhsv(276, 72%, 28%)
CMYKcmyk(28.2%, 71.8%, 0%, 72.2%)
CIE-LABlab(13.59, 26.02, -25.67)
CIE-LCHlch(13.59, 36.55, 315.39°)
OKLaboklab(26.64% 0.0595 -0.0725)
OKLCHoklch(26.64% 0.094 309.4)
XYZxyz(2.7525, 1.6591, 6.1353)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331447 #284714
analogous
#1A1447 #331447 #471441
triadic
#331447 #473314 #144733
tetradic
#331447 #471A14 #284714 #144147
square
#331447 #471A14 #284714 #144147
split-complementary
#331447 #414714 #14471A
monochromatic
#110718 #110718 #331447 #552177 #782FA6

Accessibility & contrast

On white

15.77
#331447 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#331447 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331447
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331447#FFFFFF#000000##FFFFFF
##3314471.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#0C2346
Tritanopia (blue-blind)
#301E2B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331447;
/* rgb */ color: rgb(51, 20, 71);
/* oklch */ color: oklch(26.6% 0.094 309.4);
Tailwind
colors: {
  custom: {
    50: '#6d547a',
    500: '#331447',
    950: '#000000',
  },
}
SCSS
$custom: #331447;
$custom-light: #6d547a;
$custom-dark: #000000;
JSON
{
  "hex": "#331447",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 71
  },
  "hsl": {
    "h": 276.471,
    "s": 56.044,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26635,
    "c": 0.09378,
    "h": 309.4
  },
  "luminance": 0.01659
}

Semantic roles & 50–950 ramp

primary
#331447
secondary
#547F38
accent
#DF4884
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331447

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

Preview Lab → · Contrast checker → · Palette generator →

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