#332D4E#332D4E

#332D4E is a dark, muted violet. Relative luminance 0.031; OKLCH L 32.0% C 0.058 H 291.1°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#332D4E
RGBrgb(51, 45, 78)
HSLhsl(251, 27%, 24%)
HSVhsv(251, 42%, 31%)
CMYKcmyk(34.6%, 42.3%, 0%, 69.4%)
CIE-LABlab(20.56, 11.54, -19.37)
CIE-LCHlch(20.56, 22.55, 300.78°)
OKLaboklab(31.97% 0.0209 -0.0542)
OKLCHoklch(31.97% 0.058 291.1)
XYZxyz(3.6784, 3.1306, 7.6167)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332D4E #484E2D
analogous
#2D384E #332D4E #442D4E
triadic
#332D4E #4E332D #2D4E33
tetradic
#332D4E #4E2D38 #484E2D #2D4E44
square
#332D4E #4E2D38 #484E2D #2D4E44
split-complementary
#332D4E #4E442D #384E2D
monochromatic
#0D0B13 #1A1727 #332D4E #4C4375 #665A9C

Accessibility & contrast

On white

12.91
#332D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#332D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332D4E
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332D4E#FFFFFF#000000##FFFFFF
##332D4E1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23324F
Deuteranopia (green-blind)
#24314D
Tritanopia (blue-blind)
#2D3339
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #332d4e;
/* rgb */ color: rgb(51, 45, 78);
/* oklch */ color: oklch(32.0% 0.058 291.1);
Tailwind
colors: {
  custom: {
    50: '#6c657f',
    500: '#332d4e',
    950: '#000000',
  },
}
SCSS
$custom: #332d4e;
$custom-light: #6c657f;
$custom-dark: #000000;
JSON
{
  "hex": "#332d4e",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 78
  },
  "hsl": {
    "h": 250.909,
    "s": 26.829,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31969,
    "c": 0.05806,
    "h": 291.1
  },
  "luminance": 0.03131
}

Semantic roles & 50–950 ramp

primary
#332D4E
secondary
#788057
accent
#C365B2
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#07050A
muted
#7A7A7C

Preview Lab

Preview with #332D4E

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

Preview Lab → · Contrast checker → · Palette generator →

#332D4E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva