#332198#332198

#332198 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.180 H 279.4°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#332198
RGBrgb(51, 33, 152)
HSLhsl(249, 64%, 36%)
HSVhsv(249, 78%, 60%)
CMYKcmyk(66.4%, 78.3%, 0%, 40.4%)
CIE-LABlab(23.86, 43.35, -61.54)
CIE-LCHlch(23.86, 75.27, 305.16°)
OKLaboklab(36.28% 0.0293 -0.1777)
OKLCHoklch(36.28% 0.18 279.4)
XYZxyz(7.5748, 4.0579, 30.0838)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332198 #869821
analogous
#214B98 #332198 #6F2198
triadic
#332198 #983321 #219833
tetradic
#332198 #98214B #869821 #21986F
square
#332198 #98214B #869821 #21986F
split-complementary
#332198 #986F21 #4B9821
monochromatic
#110B33 #221666 #332198 #442CCA #6C59DB

Accessibility & contrast

On white

11.59
#332198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332198
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332198#FFFFFF#000000##FFFFFF
##3321981.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332198;
/* rgb */ color: rgb(51, 33, 152);
/* oklch */ color: oklch(36.3% 0.180 279.4);
Tailwind
colors: {
  custom: {
    50: '#795fb8',
    500: '#332198',
    950: '#000000',
  },
}
SCSS
$custom: #332198;
$custom-light: #795fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#332198",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 249.076,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3628,
    "c": 0.18008,
    "h": 279.4
  },
  "luminance": 0.04059
}

Semantic roles & 50–950 ramp

primary
#332198
secondary
#AFBF56
accent
#E740CE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332198

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

Preview Lab → · Contrast checker → · Palette generator →

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