#322266#322266

#322266 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.4% C 0.114 H 289.0°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#322266
RGBrgb(50, 34, 102)
HSLhsl(254, 50%, 27%)
HSVhsv(254, 67%, 40%)
CMYKcmyk(51%, 66.7%, 0%, 60%)
CIE-LABlab(19.15, 26.46, -37.58)
CIE-LCHlch(19.15, 45.96, 305.15°)
OKLaboklab(31.42% 0.037 -0.1076)
OKLCHoklch(31.42% 0.114 289)
XYZxyz(4.2850, 2.7813, 12.8789)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322266 #566622
analogous
#223466 #322266 #542266
triadic
#322266 #663222 #226632
tetradic
#322266 #662234 #566622 #226654
square
#322266 #662234 #566622 #226654
split-complementary
#322266 #665422 #346622
monochromatic
#0B0817 #1C1338 #322266 #493194 #6042C0

Accessibility & contrast

On white

13.49
#322266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#322266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322266
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322266#FFFFFF#000000##FFFFFF
##3222661.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003068
Deuteranopia (green-blind)
#002D65
Tritanopia (blue-blind)
#213240
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #322266;
/* rgb */ color: rgb(50, 34, 102);
/* oklch */ color: oklch(31.4% 0.114 289.0);
Tailwind
colors: {
  custom: {
    50: '#6f5e92',
    500: '#322266',
    950: '#000000',
  },
}
SCSS
$custom: #322266;
$custom-light: #6f5e92;
$custom-dark: #000000;
JSON
{
  "hex": "#322266",
  "rgb": {
    "r": 50,
    "g": 34,
    "b": 102
  },
  "hsl": {
    "h": 254.118,
    "s": 50,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31424,
    "c": 0.11374,
    "h": 289
  },
  "luminance": 0.02781
}

Semantic roles & 50–950 ramp

primary
#322266
secondary
#879A4A
accent
#DA4EB9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #322266

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

Preview Lab → · Contrast checker → · Palette generator →

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