#332699#332699

#332699 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.176 H 278.5°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#332699
RGBrgb(51, 38, 153)
HSLhsl(247, 60%, 37%)
HSVhsv(247, 75%, 60%)
CMYKcmyk(66.7%, 75.2%, 0%, 40%)
CIE-LABlab(24.92, 40.97, -60.41)
CIE-LCHlch(24.92, 72.99, 304.14°)
OKLaboklab(37.06% 0.026 -0.1744)
OKLCHoklch(37.06% 0.176 278.5)
XYZxyz(7.8063, 4.3893, 30.5667)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332699 #8C9926
analogous
#265299 #332699 #6D2699
triadic
#332699 #993326 #269933
tetradic
#332699 #992652 #8C9926 #26996D
square
#332699 #992652 #8C9926 #26996D
split-complementary
#332699 #996D26 #529926
monochromatic
#120E37 #231A68 #332699 #4332CA #6F62D8

Accessibility & contrast

On white

11.18
#332699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#332699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332699
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332699#FFFFFF#000000##FFFFFF
##3326991.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409C
Deuteranopia (green-blind)
#003697
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332699;
/* rgb */ color: rgb(51, 38, 153);
/* oklch */ color: oklch(37.1% 0.176 278.5);
Tailwind
colors: {
  custom: {
    50: '#7962b8',
    500: '#332699',
    950: '#000000',
  },
}
SCSS
$custom: #332699;
$custom-light: #7962b8;
$custom-dark: #000000;
JSON
{
  "hex": "#332699",
  "rgb": {
    "r": 51,
    "g": 38,
    "b": 153
  },
  "hsl": {
    "h": 246.783,
    "s": 60.209,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37056,
    "c": 0.17636,
    "h": 278.5
  },
  "luminance": 0.0439
}

Semantic roles & 50–950 ramp

primary
#332699
secondary
#B2BD5E
accent
#E344D1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332699

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

Preview Lab → · Contrast checker → · Palette generator →

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