#331544#331544

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

Color values

HEX#331544
RGBrgb(51, 21, 68)
HSLhsl(278, 53%, 17%)
HSVhsv(278, 69%, 27%)
CMYKcmyk(25%, 69.1%, 0%, 73.3%)
CIE-LABlab(13.58, 24.63, -23.59)
CIE-LCHlch(13.58, 34.11, 316.24°)
OKLaboklab(26.56% 0.0582 -0.0664)
OKLCHoklch(26.56% 0.088 311.3)
XYZxyz(2.6766, 1.6576, 5.6467)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331544 #264415
analogous
#1C1544 #331544 #44153D
triadic
#331544 #443315 #154433
tetradic
#331544 #441C15 #264415 #153D44
square
#331544 #441C15 #264415 #153D44
split-complementary
#331544 #3D4415 #15441C
monochromatic
#120717 #120717 #331544 #562373 #7932A2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##331544#FFFFFF#000000##FFFFFF
##3315441.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)
#042145
Deuteranopia (green-blind)
#112343
Tritanopia (blue-blind)
#311E2A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331544;
/* rgb */ color: rgb(51, 21, 68);
/* oklch */ color: oklch(26.6% 0.088 311.3);
Tailwind
colors: {
  custom: {
    50: '#6d5478',
    500: '#331544',
    950: '#000000',
  },
}
SCSS
$custom: #331544;
$custom-light: #6d5478;
$custom-dark: #000000;
JSON
{
  "hex": "#331544",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 68
  },
  "hsl": {
    "h": 278.298,
    "s": 52.809,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26556,
    "c": 0.0883,
    "h": 311.3
  },
  "luminance": 0.01657
}

Semantic roles & 50–950 ramp

primary
#331544
secondary
#517C39
accent
#DC4C80
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331544

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

Preview Lab → · Contrast checker → · Palette generator →

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