#332C4E#332C4E

#332C4E is a dark, muted violet. Relative luminance 0.031; OKLCH L 31.7% C 0.060 H 292.1°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#332C4E
RGBrgb(51, 44, 78)
HSLhsl(252, 28%, 24%)
HSVhsv(252, 44%, 31%)
CMYKcmyk(34.6%, 43.6%, 0%, 69.4%)
CIE-LABlab(20.26, 12.24, -19.84)
CIE-LCHlch(20.26, 23.31, 301.67°)
OKLaboklab(31.74% 0.0225 -0.0555)
OKLCHoklch(31.74% 0.06 292.1)
XYZxyz(3.6407, 3.0552, 7.6041)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332C4E #474E2C
analogous
#2C364E #332C4E #442C4E
triadic
#332C4E #4E332C #2C4E33
tetradic
#332C4E #4E2C36 #474E2C #2C4E44
square
#332C4E #4E2C36 #474E2C #2C4E44
split-complementary
#332C4E #4E442C #364E2C
monochromatic
#0D0B14 #191627 #332C4E #4D4275 #66589C

Accessibility & contrast

On white

13.04
#332C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#332C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332C4E
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332C4E#FFFFFF#000000##FFFFFF
##332C4E1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22314F
Deuteranopia (green-blind)
#23304D
Tritanopia (blue-blind)
#2D3239
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #332c4e;
/* rgb */ color: rgb(51, 44, 78);
/* oklch */ color: oklch(31.7% 0.060 292.1);
Tailwind
colors: {
  custom: {
    50: '#6c657f',
    500: '#332c4e',
    950: '#000000',
  },
}
SCSS
$custom: #332c4e;
$custom-light: #6c657f;
$custom-dark: #000000;
JSON
{
  "hex": "#332c4e",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 78
  },
  "hsl": {
    "h": 252.353,
    "s": 27.869,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31744,
    "c": 0.05991,
    "h": 292.1
  },
  "luminance": 0.03055
}

Semantic roles & 50–950 ramp

primary
#332C4E
secondary
#778056
accent
#C464B0
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#07050A
muted
#7A7A7C

Preview Lab

Preview with #332C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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