#332872#332872

#332872 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.122 H 284.5°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#332872
RGBrgb(51, 40, 114)
HSLhsl(249, 48%, 30%)
HSVhsv(249, 65%, 45%)
CMYKcmyk(55.3%, 64.9%, 0%, 55.3%)
CIE-LABlab(21.71, 26.78, -41.19)
CIE-LCHlch(21.71, 49.13, 303.03°)
OKLaboklab(33.63% 0.0306 -0.1181)
OKLCHoklch(33.63% 0.122 284.5)
XYZxyz(5.1604, 3.4360, 16.3076)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332872 #677228
analogous
#284272 #332872 #582872
triadic
#332872 #723328 #287233
tetradic
#332872 #722842 #677228 #287258
square
#332872 #722842 #677228 #287258
split-complementary
#332872 #725828 #427228
monochromatic
#0A0817 #1F1845 #332872 #47389F #6352C2

Accessibility & contrast

On white

12.45
#332872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#332872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332872
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332872#FFFFFF#000000##FFFFFF
##3328721.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#193A49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #332872;
/* rgb */ color: rgb(51, 40, 114);
/* oklch */ color: oklch(33.6% 0.122 284.5);
Tailwind
colors: {
  custom: {
    50: '#71629b',
    500: '#332872',
    950: '#000000',
  },
}
SCSS
$custom: #332872;
$custom-light: #71629b;
$custom-dark: #000000;
JSON
{
  "hex": "#332872",
  "rgb": {
    "r": 51,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 248.919,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33633,
    "c": 0.12202,
    "h": 284.5
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#332872
secondary
#98A452
accent
#D850C3
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #332872

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

Preview Lab → · Contrast checker → · Palette generator →

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