#332296#332296

#332296 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.177 H 279.5°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#332296
RGBrgb(51, 34, 150)
HSLhsl(249, 63%, 36%)
HSVhsv(249, 77%, 59%)
CMYKcmyk(66%, 77.3%, 0%, 41.2%)
CIE-LABlab(23.83, 42.19, -60.35)
CIE-LCHlch(23.83, 73.64, 304.96°)
OKLaboklab(36.2% 0.0292 -0.1742)
OKLCHoklch(36.2% 0.177 279.5)
XYZxyz(7.4405, 4.0493, 29.2377)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332296 #859622
analogous
#224B96 #332296 #6D2296
triadic
#332296 #963322 #229633
tetradic
#332296 #96224B #859622 #22966D
square
#332296 #96224B #859622 #22966D
split-complementary
#332296 #966D22 #4B9622
monochromatic
#110B32 #221764 #332296 #442DC8 #6C59D9

Accessibility & contrast

On white

11.60
#332296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#332296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332296
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332296#FFFFFF#000000##FFFFFF
##3322961.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332296;
/* rgb */ color: rgb(51, 34, 150);
/* oklch */ color: oklch(36.2% 0.177 279.5);
Tailwind
colors: {
  custom: {
    50: '#7960b6',
    500: '#332296',
    950: '#000000',
  },
}
SCSS
$custom: #332296;
$custom-light: #7960b6;
$custom-dark: #000000;
JSON
{
  "hex": "#332296",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 248.793,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36197,
    "c": 0.17667,
    "h": 279.5
  },
  "luminance": 0.0405
}

Semantic roles & 50–950 ramp

primary
#332296
secondary
#AEBE56
accent
#E642CE
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332296

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

Preview Lab → · Contrast checker → · Palette generator →

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