#332889#332889

#332889 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.154 H 280.4°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#332889
RGBrgb(51, 40, 137)
HSLhsl(247, 55%, 35%)
HSVhsv(247, 71%, 54%)
CMYKcmyk(62.8%, 70.8%, 0%, 46.3%)
CIE-LABlab(23.76, 34.52, -52.41)
CIE-LCHlch(23.76, 62.76, 303.37°)
OKLaboklab(35.75% 0.0277 -0.1511)
OKLCHoklch(35.75% 0.154 280.4)
XYZxyz(6.6380, 4.0270, 24.0896)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332889 #7E8928
analogous
#284E89 #332889 #642889
triadic
#332889 #893328 #288933
tetradic
#332889 #89284E #7E8928 #288964
square
#332889 #89284E #7E8928 #288964
split-complementary
#332889 #896428 #4E8928
monochromatic
#100C2A #211A5A #332889 #4536B8 #695CCF

Accessibility & contrast

On white

11.63
#332889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#332889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332889
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332889#FFFFFF#000000##FFFFFF
##3328891.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003587
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332889;
/* rgb */ color: rgb(51, 40, 137);
/* oklch */ color: oklch(35.8% 0.154 280.4);
Tailwind
colors: {
  custom: {
    50: '#7663ac',
    500: '#332889',
    950: '#000000',
  },
}
SCSS
$custom: #332889;
$custom-light: #7663ac;
$custom-dark: #000000;
JSON
{
  "hex": "#332889",
  "rgb": {
    "r": 51,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 246.804,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35752,
    "c": 0.15358,
    "h": 280.4
  },
  "luminance": 0.04028
}

Semantic roles & 50–950 ramp

primary
#332889
secondary
#AAB558
accent
#DE4ACD
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332889

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

Preview Lab → · Contrast checker → · Palette generator →

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