#331553#331553

#331553 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.107 H 301.9°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#331553
RGBrgb(51, 21, 83)
HSLhsl(269, 60%, 20%)
HSVhsv(269, 75%, 33%)
CMYKcmyk(38.6%, 74.7%, 0%, 67.5%)
CIE-LABlab(14.76, 28.77, -32.02)
CIE-LCHlch(14.76, 43.04, 311.94°)
OKLaboklab(27.79% 0.0568 -0.0911)
OKLCHoklch(27.79% 0.107 301.9)
XYZxyz(3.1944, 1.8647, 8.3736)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331553 #355315
analogous
#151653 #331553 #521553
triadic
#331553 #533315 #155333
tetradic
#331553 #531516 #355315 #155352
square
#331553 #531516 #355315 #155352
split-complementary
#331553 #535215 #165315
monochromatic
#0F0618 #150922 #331553 #512184 #6F2EB5

Accessibility & contrast

On white

15.29
#331553 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#331553 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331553
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331553#FFFFFF#000000##FFFFFF
##3315531.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002555
Deuteranopia (green-blind)
#002552
Tritanopia (blue-blind)
#2C2332
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331553;
/* rgb */ color: rgb(51, 21, 83);
/* oklch */ color: oklch(27.8% 0.107 301.9);
Tailwind
colors: {
  custom: {
    50: '#6e5584',
    500: '#331553',
    950: '#000000',
  },
}
SCSS
$custom: #331553;
$custom-light: #6e5584;
$custom-dark: #000000;
JSON
{
  "hex": "#331553",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 83
  },
  "hsl": {
    "h": 269.032,
    "s": 59.615,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27785,
    "c": 0.10739,
    "h": 301.9
  },
  "luminance": 0.01865
}

Semantic roles & 50–950 ramp

primary
#331553
secondary
#638B39
accent
#E34596
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331553

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

Preview Lab → · Contrast checker → · Palette generator →

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