#331554#331554

#331554 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.109 H 301.4°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#331554
RGBrgb(51, 21, 84)
HSLhsl(269, 60%, 21%)
HSVhsv(269, 75%, 33%)
CMYKcmyk(39.3%, 75%, 0%, 67.1%)
CIE-LABlab(14.85, 29.05, -32.56)
CIE-LCHlch(14.85, 43.64, 311.75°)
OKLaboklab(27.87% 0.0567 -0.0927)
OKLCHoklch(27.87% 0.109 301.4)
XYZxyz(3.2333, 1.8802, 8.5784)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331554 #365415
analogous
#151754 #331554 #521554
triadic
#331554 #543315 #155433
tetradic
#331554 #541517 #365415 #155452
square
#331554 #541517 #365415 #155452
split-complementary
#331554 #545215 #175415
monochromatic
#0F0618 #150923 #331554 #512185 #6E2DB6

Accessibility & contrast

On white

15.26
#331554 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#331554 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331554
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331554#FFFFFF#000000##FFFFFF
##3315541.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#002553
Tritanopia (blue-blind)
#2C2432
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331554;
/* rgb */ color: rgb(51, 21, 84);
/* oklch */ color: oklch(27.9% 0.109 301.4);
Tailwind
colors: {
  custom: {
    50: '#6e5585',
    500: '#331554',
    950: '#000000',
  },
}
SCSS
$custom: #331554;
$custom-light: #6e5585;
$custom-dark: #000000;
JSON
{
  "hex": "#331554",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 84
  },
  "hsl": {
    "h": 268.571,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27873,
    "c": 0.10866,
    "h": 301.4
  },
  "luminance": 0.0188
}

Semantic roles & 50–950 ramp

primary
#331554
secondary
#648C39
accent
#E34598
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331554

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

Preview Lab → · Contrast checker → · Palette generator →

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