#332079#332079

#332079 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.142 H 285.3°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#332079
RGBrgb(51, 32, 121)
HSLhsl(253, 58%, 30%)
HSVhsv(253, 74%, 47%)
CMYKcmyk(57.9%, 73.6%, 0%, 52.5%)
CIE-LABlab(20.51, 34.05, -47.64)
CIE-LCHlch(20.51, 58.56, 305.55°)
OKLaboklab(32.96% 0.0376 -0.1371)
OKLCHoklch(32.96% 0.142 285.3)
XYZxyz(5.3319, 3.1170, 18.4061)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332079 #667920
analogous
#203979 #332079 #602079
triadic
#332079 #793320 #207933
tetradic
#332079 #792039 #667920 #207960
square
#332079 #792039 #667920 #207960
split-complementary
#332079 #796020 #397920
monochromatic
#0A0618 #1F1349 #332079 #472DA9 #6345CE

Accessibility & contrast

On white

12.94
#332079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#332079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332079
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332079#FFFFFF#000000##FFFFFF
##3320791.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#12384A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #332079;
/* rgb */ color: rgb(51, 32, 121);
/* oklch */ color: oklch(33.0% 0.142 285.3);
Tailwind
colors: {
  custom: {
    50: '#735da1',
    500: '#332079',
    950: '#000000',
  },
}
SCSS
$custom: #332079;
$custom-light: #735da1;
$custom-dark: #000000;
JSON
{
  "hex": "#332079",
  "rgb": {
    "r": 51,
    "g": 32,
    "b": 121
  },
  "hsl": {
    "h": 252.809,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.32958,
    "c": 0.14214,
    "h": 285.3
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#332079
secondary
#97AC49
accent
#E146C0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #332079

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

Preview Lab → · Contrast checker → · Palette generator →

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