#332096#332096

#332096 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.179 H 279.8°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#332096
RGBrgb(51, 32, 150)
HSLhsl(250, 65%, 36%)
HSVhsv(250, 79%, 59%)
CMYKcmyk(66%, 78.7%, 0%, 41.2%)
CIE-LABlab(23.47, 43.24, -60.96)
CIE-LCHlch(23.47, 74.74, 305.35°)
OKLaboklab(35.94% 0.0304 -0.176)
OKLCHoklch(35.94% 0.179 279.8)
XYZxyz(7.3850, 3.9382, 29.2192)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332096 #839620
analogous
#204896 #332096 #6E2096
triadic
#332096 #963320 #209633
tetradic
#332096 #962048 #839620 #20966E
square
#332096 #962048 #839620 #20966E
split-complementary
#332096 #966E20 #489620
monochromatic
#110A31 #221564 #332096 #442BC8 #6B56DB

Accessibility & contrast

On white

11.75
#332096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#332096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332096
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332096#FFFFFF#000000##FFFFFF
##3320961.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332096;
/* rgb */ color: rgb(51, 32, 150);
/* oklch */ color: oklch(35.9% 0.179 279.8);
Tailwind
colors: {
  custom: {
    50: '#795fb6',
    500: '#332096',
    950: '#000000',
  },
}
SCSS
$custom: #332096;
$custom-light: #795fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#332096",
  "rgb": {
    "r": 51,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 249.661,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3594,
    "c": 0.17859,
    "h": 279.8
  },
  "luminance": 0.03939
}

Semantic roles & 50–950 ramp

primary
#332096
secondary
#ADBE53
accent
#E840CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332096

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

Preview Lab → · Contrast checker → · Palette generator →

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