#332A4E#332A4E

#332A4E is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.3% C 0.064 H 293.9°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#332A4E
RGBrgb(51, 42, 78)
HSLhsl(255, 30%, 24%)
HSVhsv(255, 46%, 31%)
CMYKcmyk(34.6%, 46.2%, 0%, 69.4%)
CIE-LABlab(19.68, 13.63, -20.76)
CIE-LCHlch(19.68, 24.83, 303.29°)
OKLaboklab(31.3% 0.0258 -0.0582)
OKLCHoklch(31.3% 0.064 293.9)
XYZxyz(3.5680, 2.9097, 7.5799)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332A4E #454E2A
analogous
#2A334E #332A4E #452A4E
triadic
#332A4E #4E332A #2A4E33
tetradic
#332A4E #4E2A33 #454E2A #2A4E45
square
#332A4E #4E2A33 #454E2A #2A4E45
split-complementary
#332A4E #4E452A #334E2A
monochromatic
#0D0B14 #191526 #332A4E #4D3F76 #67559E

Accessibility & contrast

On white

13.27
#332A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#332A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332A4E
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332A4E#FFFFFF#000000##FFFFFF
##332A4E1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F304F
Deuteranopia (green-blind)
#202F4D
Tritanopia (blue-blind)
#2D3138
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #332a4e;
/* rgb */ color: rgb(51, 42, 78);
/* oklch */ color: oklch(31.3% 0.064 293.9);
Tailwind
colors: {
  custom: {
    50: '#6c6380',
    500: '#332a4e',
    950: '#000000',
  },
}
SCSS
$custom: #332a4e;
$custom-light: #6c6380;
$custom-dark: #000000;
JSON
{
  "hex": "#332a4e",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 78
  },
  "hsl": {
    "h": 255,
    "s": 30,
    "l": 23.529
  },
  "oklch": {
    "l": 0.313,
    "c": 0.06365,
    "h": 293.9
  },
  "luminance": 0.0291
}

Semantic roles & 50–950 ramp

primary
#332A4E
secondary
#758054
accent
#C662AD
background
#F6F5F7
surface
#EBEAEE
border
#C6C6C9
text
#07050A
muted
#7A797C

Preview Lab

Preview with #332A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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