#332276#332276

#332276 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.0% C 0.136 H 285.5°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#332276
RGBrgb(51, 34, 118)
HSLhsl(252, 55%, 30%)
HSVhsv(252, 71%, 46%)
CMYKcmyk(56.8%, 71.2%, 0%, 53.7%)
CIE-LABlab(20.66, 31.89, -45.48)
CIE-LCHlch(20.66, 55.54, 305.04°)
OKLaboklab(32.98% 0.0363 -0.1307)
OKLCHoklch(32.98% 0.136 285.5)
XYZxyz(5.2063, 3.1556, 17.4708)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332276 #657622
analogous
#223B76 #332276 #5D2276
triadic
#332276 #763322 #227633
tetradic
#332276 #76223B #657622 #22765D
square
#332276 #76223B #657622 #22765D
split-complementary
#332276 #765D22 #3B7622
monochromatic
#0A0718 #1E1446 #332276 #4830A6 #6248CA

Accessibility & contrast

On white

12.87
#332276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#332276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332276
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332276#FFFFFF#000000##FFFFFF
##3322761.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#002F74
Tritanopia (blue-blind)
#163849
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #332276;
/* rgb */ color: rgb(51, 34, 118);
/* oklch */ color: oklch(33.0% 0.136 285.5);
Tailwind
colors: {
  custom: {
    50: '#725e9e',
    500: '#332276',
    950: '#000000',
  },
}
SCSS
$custom: #332276;
$custom-light: #725e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#332276",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 252.143,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32979,
    "c": 0.13568,
    "h": 285.5
  },
  "luminance": 0.03156
}

Semantic roles & 50–950 ramp

primary
#332276
secondary
#96A94B
accent
#DF49C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #332276

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

Preview Lab → · Contrast checker → · Palette generator →

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