#331552#331552

#331552 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.106 H 302.5°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#331552
RGBrgb(51, 21, 82)
HSLhsl(270, 59%, 20%)
HSVhsv(270, 74%, 32%)
CMYKcmyk(37.8%, 74.4%, 0%, 67.8%)
CIE-LABlab(14.68, 28.48, -31.47)
CIE-LCHlch(14.68, 42.45, 312.15°)
OKLaboklab(27.7% 0.057 -0.0895)
OKLCHoklch(27.7% 0.106 302.5)
XYZxyz(3.1560, 1.8493, 8.1717)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331552 #345215
analogous
#151652 #331552 #511552
triadic
#331552 #523315 #155233
tetradic
#331552 #521516 #345215 #155251
square
#331552 #521516 #345215 #155251
split-complementary
#331552 #525115 #165215
monochromatic
#0F0618 #150921 #331552 #512183 #702EB3

Accessibility & contrast

On white

15.33
#331552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331552
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331552#FFFFFF#000000##FFFFFF
##3315521.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#2D2331
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331552;
/* rgb */ color: rgb(51, 21, 82);
/* oklch */ color: oklch(27.7% 0.106 302.5);
Tailwind
colors: {
  custom: {
    50: '#6e5583',
    500: '#331552',
    950: '#000000',
  },
}
SCSS
$custom: #331552;
$custom-light: #6e5583;
$custom-dark: #000000;
JSON
{
  "hex": "#331552",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 82
  },
  "hsl": {
    "h": 269.508,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27698,
    "c": 0.10612,
    "h": 302.5
  },
  "luminance": 0.01849
}

Semantic roles & 50–950 ramp

primary
#331552
secondary
#628A39
accent
#E24595
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331552

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

Preview Lab → · Contrast checker → · Palette generator →

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