#332B59#332B59

#332B59 is a dark, moderate violet. Relative luminance 0.032; OKLCH L 32.3% C 0.080 H 289.1°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#332B59
RGBrgb(51, 43, 89)
HSLhsl(250, 35%, 26%)
HSVhsv(250, 52%, 35%)
CMYKcmyk(42.7%, 51.7%, 0%, 65.1%)
CIE-LABlab(20.65, 16.42, -26.59)
CIE-LCHlch(20.65, 31.25, 301.71°)
OKLaboklab(32.25% 0.0261 -0.0752)
OKLCHoklch(32.25% 0.08 289.1)
XYZxyz(4.0318, 3.1527, 9.8454)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332B59 #51592B
analogous
#2B3A59 #332B59 #4A2B59
triadic
#332B59 #59332B #2B5933
tetradic
#332B59 #592B3A #51592B #2B594A
square
#332B59 #592B3A #51592B #2B594A
split-complementary
#332B59 #594A2B #3A592B
monochromatic
#0C0A15 #1B1730 #332B59 #4B3F82 #6253AC

Accessibility & contrast

On white

12.88
#332B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332B59
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332B59#FFFFFF#000000##FFFFFF
##332B591.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19335B
Deuteranopia (green-blind)
#1A3158
Tritanopia (blue-blind)
#29343D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #332b59;
/* rgb */ color: rgb(51, 43, 89);
/* oklch */ color: oklch(32.3% 0.080 289.1);
Tailwind
colors: {
  custom: {
    50: '#6d6488',
    500: '#332b59',
    950: '#000000',
  },
}
SCSS
$custom: #332b59;
$custom-light: #6d6488;
$custom-dark: #000000;
JSON
{
  "hex": "#332b59",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 89
  },
  "hsl": {
    "h": 250.435,
    "s": 34.848,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32251,
    "c": 0.0796,
    "h": 289.1
  },
  "luminance": 0.03153
}

Semantic roles & 50–950 ramp

primary
#332B59
secondary
#828B55
accent
#CB5DB8
background
#F6F6F8
surface
#ECEBF0
border
#C7C6CB
text
#07050B
muted
#7A7A7C

Preview Lab

Preview with #332B59

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

Preview Lab → · Contrast checker → · Palette generator →

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