#332772#332772

#332772 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.123 H 284.9°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#332772
RGBrgb(51, 39, 114)
HSLhsl(250, 49%, 30%)
HSVhsv(250, 66%, 45%)
CMYKcmyk(55.3%, 65.8%, 0%, 55.3%)
CIE-LABlab(21.47, 27.43, -41.59)
CIE-LCHlch(21.47, 49.82, 303.40°)
OKLaboklab(33.46% 0.0317 -0.1193)
OKLCHoklch(33.46% 0.123 284.9)
XYZxyz(5.1271, 3.3695, 16.2965)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332772 #667227
analogous
#274072 #332772 #592772
triadic
#332772 #723327 #277233
tetradic
#332772 #722740 #667227 #277259
square
#332772 #722740 #667227 #277259
split-complementary
#332772 #725927 #407227
monochromatic
#0A0817 #1F1744 #332772 #4737A0 #6350C3

Accessibility & contrast

On white

12.54
#332772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#332772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332772
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332772#FFFFFF#000000##FFFFFF
##3327721.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#193948
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #332772;
/* rgb */ color: rgb(51, 39, 114);
/* oklch */ color: oklch(33.5% 0.123 284.9);
Tailwind
colors: {
  custom: {
    50: '#71629b',
    500: '#332772',
    950: '#000000',
  },
}
SCSS
$custom: #332772;
$custom-light: #71629b;
$custom-dark: #000000;
JSON
{
  "hex": "#332772",
  "rgb": {
    "r": 51,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 249.6,
    "s": 49.02,
    "l": 30
  },
  "oklch": {
    "l": 0.33455,
    "c": 0.12343,
    "h": 284.9
  },
  "luminance": 0.0337
}

Semantic roles & 50–950 ramp

primary
#332772
secondary
#97A450
accent
#D94FC3
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #332772

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

Preview Lab → · Contrast checker → · Palette generator →

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