#332879#332879

#332879 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.132 H 283.1°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#332879
RGBrgb(51, 40, 121)
HSLhsl(248, 50%, 32%)
HSVhsv(248, 67%, 47%)
CMYKcmyk(57.9%, 66.9%, 0%, 52.5%)
CIE-LABlab(22.31, 29.14, -44.70)
CIE-LCHlch(22.31, 53.36, 303.10°)
OKLaboklab(34.25% 0.0299 -0.1284)
OKLCHoklch(34.25% 0.132 283.1)
XYZxyz(5.5742, 3.6015, 18.4869)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332879 #6E7928
analogous
#284679 #332879 #5C2879
triadic
#332879 #793328 #287933
tetradic
#332879 #792846 #6E7928 #28795C
square
#332879 #792846 #6E7928 #28795C
split-complementary
#332879 #795C28 #467928
monochromatic
#0C0A1D #20194B #332879 #4637A7 #6455C7

Accessibility & contrast

On white

12.21
#332879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#332879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332879
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332879#FFFFFF#000000##FFFFFF
##3328791.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#113C4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #332879;
/* rgb */ color: rgb(51, 40, 121);
/* oklch */ color: oklch(34.3% 0.132 283.1);
Tailwind
colors: {
  custom: {
    50: '#7263a0',
    500: '#332879',
    950: '#000000',
  },
}
SCSS
$custom: #332879;
$custom-light: #7263a0;
$custom-dark: #000000;
JSON
{
  "hex": "#332879",
  "rgb": {
    "r": 51,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 248.148,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34254,
    "c": 0.13188,
    "h": 283.1
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#332879
secondary
#9FAB52
accent
#DA4EC7
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050F
muted
#7B797E

Preview Lab

Preview with #332879

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

Preview Lab → · Contrast checker → · Palette generator →

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