#332286#332286

#332286 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.157 H 282.2°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#332286
RGBrgb(51, 34, 134)
HSLhsl(250, 60%, 33%)
HSVhsv(250, 75%, 53%)
CMYKcmyk(61.9%, 74.6%, 0%, 47.5%)
CIE-LABlab(22.19, 37.08, -53.11)
CIE-LCHlch(22.19, 64.77, 304.92°)
OKLaboklab(34.54% 0.0331 -0.1531)
OKLCHoklch(34.54% 0.157 282.2)
XYZxyz(6.2390, 3.5687, 22.9097)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332286 #758622
analogous
#224386 #332286 #652286
triadic
#332286 #863322 #228633
tetradic
#332286 #862243 #758622 #228665
square
#332286 #862243 #758622 #228665
split-complementary
#332286 #866522 #438622
monochromatic
#0E0924 #201655 #332286 #462EB7 #6650D3

Accessibility & contrast

On white

12.25
#332286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#332286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332286
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332286#FFFFFF#000000##FFFFFF
##3322861.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #332286;
/* rgb */ color: rgb(51, 34, 134);
/* oklch */ color: oklch(34.5% 0.157 282.2);
Tailwind
colors: {
  custom: {
    50: '#755faa',
    500: '#332286',
    950: '#000000',
  },
}
SCSS
$custom: #332286;
$custom-light: #755faa;
$custom-dark: #000000;
JSON
{
  "hex": "#332286",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 250.2,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34543,
    "c": 0.15662,
    "h": 282.2
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#332286
secondary
#A4B64E
accent
#E345C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332286

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

Preview Lab → · Contrast checker → · Palette generator →

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