#332479#332479

#332479 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.137 H 284.3°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#332479
RGBrgb(51, 36, 121)
HSLhsl(251, 54%, 31%)
HSVhsv(251, 70%, 47%)
CMYKcmyk(57.9%, 70.2%, 0%, 52.5%)
CIE-LABlab(21.38, 31.65, -46.22)
CIE-LCHlch(21.38, 56.01, 304.40°)
OKLaboklab(33.58% 0.0339 -0.1329)
OKLCHoklch(33.58% 0.137 284.3)
XYZxyz(5.4463, 3.3457, 18.4443)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332479 #6A7924
analogous
#243F79 #332479 #5D2479
triadic
#332479 #793324 #247933
tetradic
#332479 #79243F #6A7924 #24795D
square
#332479 #79243F #6A7924 #24795D
split-complementary
#332479 #795D24 #3F7924
monochromatic
#0B081B #1F164A #332479 #4732A8 #634DCA

Accessibility & contrast

On white

12.58
#332479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#332479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332479
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332479#FFFFFF#000000##FFFFFF
##3324791.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#123A4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #332479;
/* rgb */ color: rgb(51, 36, 121);
/* oklch */ color: oklch(33.6% 0.137 284.3);
Tailwind
colors: {
  custom: {
    50: '#7360a0',
    500: '#332479',
    950: '#000000',
  },
}
SCSS
$custom: #332479;
$custom-light: #7360a0;
$custom-dark: #000000;
JSON
{
  "hex": "#332479",
  "rgb": {
    "r": 51,
    "g": 36,
    "b": 121
  },
  "hsl": {
    "h": 250.588,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33582,
    "c": 0.13714,
    "h": 284.3
  },
  "luminance": 0.03346
}

Semantic roles & 50–950 ramp

primary
#332479
secondary
#9BAC4D
accent
#DE4AC4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #332479

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

Preview Lab → · Contrast checker → · Palette generator →

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