#332498#332498

#332498 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.177 H 278.9°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#332498
RGBrgb(51, 36, 152)
HSLhsl(248, 62%, 37%)
HSVhsv(248, 76%, 60%)
CMYKcmyk(66.4%, 76.3%, 0%, 40.4%)
CIE-LABlab(24.42, 41.75, -60.61)
CIE-LCHlch(24.42, 73.60, 304.56°)
OKLaboklab(36.68% 0.0275 -0.175)
OKLCHoklch(36.68% 0.177 278.9)
XYZxyz(7.6618, 4.2319, 30.1128)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332498 #899824
analogous
#244F98 #332498 #6D2498
triadic
#332498 #983324 #249833
tetradic
#332498 #98244F #899824 #24986D
square
#332498 #98244F #899824 #24986D
split-complementary
#332498 #986D24 #4F9824
monochromatic
#120D35 #221867 #332498 #4430C9 #6E5ED9

Accessibility & contrast

On white

11.37
#332498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#332498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332498
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332498#FFFFFF#000000##FFFFFF
##3324981.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #332498;
/* rgb */ color: rgb(51, 36, 152);
/* oklch */ color: oklch(36.7% 0.177 278.9);
Tailwind
colors: {
  custom: {
    50: '#7961b7',
    500: '#332498',
    950: '#000000',
  },
}
SCSS
$custom: #332498;
$custom-light: #7961b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332498",
  "rgb": {
    "r": 51,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 247.759,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36675,
    "c": 0.17714,
    "h": 278.9
  },
  "luminance": 0.04233
}

Semantic roles & 50–950 ramp

primary
#332498
secondary
#B1BE5A
accent
#E543D0
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332498

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

Preview Lab → · Contrast checker → · Palette generator →

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