#332196#332196

#332196 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.178 H 279.7°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#332196
RGBrgb(51, 33, 150)
HSLhsl(249, 64%, 36%)
HSVhsv(249, 78%, 59%)
CMYKcmyk(66%, 78%, 0%, 41.2%)
CIE-LABlab(23.65, 42.72, -60.66)
CIE-LCHlch(23.65, 74.19, 305.16°)
OKLaboklab(36.07% 0.0298 -0.1751)
OKLCHoklch(36.07% 0.178 279.7)
XYZxyz(7.4124, 3.9929, 29.2283)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332196 #849621
analogous
#214996 #332196 #6D2196
triadic
#332196 #963321 #219633
tetradic
#332196 #962149 #849621 #21966D
square
#332196 #962149 #849621 #21966D
split-complementary
#332196 #966D21 #499621
monochromatic
#110B32 #221664 #332196 #442CC8 #6B57DA

Accessibility & contrast

On white

11.67
#332196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#332196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332196
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332196#FFFFFF#000000##FFFFFF
##3321961.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #332196;
/* rgb */ color: rgb(51, 33, 150);
/* oklch */ color: oklch(36.1% 0.178 279.7);
Tailwind
colors: {
  custom: {
    50: '#795fb6',
    500: '#332196',
    950: '#000000',
  },
}
SCSS
$custom: #332196;
$custom-light: #795fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#332196",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 249.231,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36067,
    "c": 0.17764,
    "h": 279.7
  },
  "luminance": 0.03994
}

Semantic roles & 50–950 ramp

primary
#332196
secondary
#AEBE55
accent
#E741CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332196

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

Preview Lab → · Contrast checker → · Palette generator →

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