#332199#332199

#332199 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.181 H 279.2°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#332199
RGBrgb(51, 33, 153)
HSLhsl(249, 65%, 36%)
HSVhsv(249, 78%, 60%)
CMYKcmyk(66.7%, 78.4%, 0%, 40%)
CIE-LABlab(23.97, 43.66, -61.97)
CIE-LCHlch(23.97, 75.81, 305.17°)
OKLaboklab(36.39% 0.029 -0.1789)
OKLCHoklch(36.39% 0.181 279.2)
XYZxyz(7.6570, 4.0908, 30.5169)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332199 #879921
analogous
#214B99 #332199 #6F2199
triadic
#332199 #993321 #219933
tetradic
#332199 #99214B #879921 #21996F
square
#332199 #99214B #879921 #21996F
split-complementary
#332199 #996F21 #4B9921
monochromatic
#110B34 #221667 #332199 #442CCB #6D59DB

Accessibility & contrast

On white

11.55
#332199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#332199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332199
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332199#FFFFFF#000000##FFFFFF
##3321991.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332199;
/* rgb */ color: rgb(51, 33, 153);
/* oklch */ color: oklch(36.4% 0.181 279.2);
Tailwind
colors: {
  custom: {
    50: '#7960b8',
    500: '#332199',
    950: '#000000',
  },
}
SCSS
$custom: #332199;
$custom-light: #7960b8;
$custom-dark: #000000;
JSON
{
  "hex": "#332199",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 249,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36388,
    "c": 0.18129,
    "h": 279.2
  },
  "luminance": 0.04091
}

Semantic roles & 50–950 ramp

primary
#332199
secondary
#B0BF56
accent
#E840CE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #332199

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

Preview Lab → · Contrast checker → · Palette generator →

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