#332880#332880

#332880 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.142 H 281.9°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#332880
RGBrgb(51, 40, 128)
HSLhsl(248, 52%, 33%)
HSVhsv(248, 69%, 50%)
CMYKcmyk(60.2%, 68.8%, 0%, 49.8%)
CIE-LABlab(22.93, 31.50, -48.12)
CIE-LCHlch(22.93, 57.52, 303.21°)
OKLaboklab(34.9% 0.0291 -0.1385)
OKLCHoklch(34.9% 0.142 281.9)
XYZxyz(6.0191, 3.7795, 20.8302)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332880 #758028
analogous
#284980 #332880 #5F2880
triadic
#332880 #803328 #288033
tetradic
#332880 #802849 #758028 #28805F
square
#332880 #802849 #758028 #28805F
split-complementary
#332880 #805F28 #498028
monochromatic
#0E0B23 #201951 #332880 #4637AF #6658CB

Accessibility & contrast

On white

11.96
#332880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#332880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332880
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332880#FFFFFF#000000##FFFFFF
##3328801.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#043F50
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #332880;
/* rgb */ color: rgb(51, 40, 128);
/* oklch */ color: oklch(34.9% 0.142 281.9);
Tailwind
colors: {
  custom: {
    50: '#7463a6',
    500: '#332880',
    950: '#000000',
  },
}
SCSS
$custom: #332880;
$custom-light: #7463a6;
$custom-dark: #000000;
JSON
{
  "hex": "#332880",
  "rgb": {
    "r": 51,
    "g": 40,
    "b": 128
  },
  "hsl": {
    "h": 247.5,
    "s": 52.381,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34897,
    "c": 0.14151,
    "h": 281.9
  },
  "luminance": 0.0378
}

Semantic roles & 50–950 ramp

primary
#332880
secondary
#A4B054
accent
#DC4CCA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #332880

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

Preview Lab → · Contrast checker → · Palette generator →

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