#332497#332497

#332497 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.176 H 279.1°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#332497
RGBrgb(51, 36, 151)
HSLhsl(248, 61%, 37%)
HSVhsv(248, 76%, 59%)
CMYKcmyk(66.2%, 76.2%, 0%, 40.8%)
CIE-LABlab(24.32, 41.43, -60.17)
CIE-LCHlch(24.32, 73.05, 304.55°)
OKLaboklab(36.57% 0.0277 -0.1737)
OKLCHoklch(36.57% 0.176 279.1)
XYZxyz(7.5802, 4.1993, 29.6832)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332497 #889724
analogous
#244F97 #332497 #6D2497
triadic
#332497 #973324 #249733
tetradic
#332497 #97244F #889724 #24976D
square
#332497 #97244F #889724 #24976D
split-complementary
#332497 #976D24 #4F9724
monochromatic
#120C34 #221866 #332497 #4430C8 #6D5DD8

Accessibility & contrast

On white

11.41
#332497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#332497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332497
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332497#FFFFFF#000000##FFFFFF
##3324971.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332497;
/* rgb */ color: rgb(51, 36, 151);
/* oklch */ color: oklch(36.6% 0.176 279.1);
Tailwind
colors: {
  custom: {
    50: '#7961b7',
    500: '#332497',
    950: '#000000',
  },
}
SCSS
$custom: #332497;
$custom-light: #7961b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332497",
  "rgb": {
    "r": 51,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 247.826,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36571,
    "c": 0.17591,
    "h": 279.1
  },
  "luminance": 0.042
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332497

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

Preview Lab → · Contrast checker → · Palette generator →

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