#332887#332887

#332887 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.151 H 280.7°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#332887
RGBrgb(51, 40, 135)
HSLhsl(247, 54%, 34%)
HSVhsv(247, 70%, 53%)
CMYKcmyk(62.2%, 70.4%, 0%, 47.1%)
CIE-LABlab(23.57, 33.85, -51.47)
CIE-LCHlch(23.57, 61.60, 303.34°)
OKLaboklab(35.56% 0.028 -0.1483)
OKLCHoklch(35.56% 0.151 280.7)
XYZxyz(6.4958, 3.9702, 23.3410)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332887 #7C8728
analogous
#284D87 #332887 #632887
triadic
#332887 #873328 #288733
tetradic
#332887 #87284D #7C8728 #288763
square
#332887 #87284D #7C8728 #288763
split-complementary
#332887 #876328 #4D8728
monochromatic
#0F0C29 #211A58 #332887 #4536B6 #685BCE

Accessibility & contrast

On white

11.70
#332887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#332887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332887
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332887#FFFFFF#000000##FFFFFF
##3328871.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #332887;
/* rgb */ color: rgb(51, 40, 135);
/* oklch */ color: oklch(35.6% 0.151 280.7);
Tailwind
colors: {
  custom: {
    50: '#7563ab',
    500: '#332887',
    950: '#000000',
  },
}
SCSS
$custom: #332887;
$custom-light: #7563ab;
$custom-dark: #000000;
JSON
{
  "hex": "#332887",
  "rgb": {
    "r": 51,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 246.947,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35559,
    "c": 0.15092,
    "h": 280.7
  },
  "luminance": 0.03971
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332887

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

Preview Lab → · Contrast checker → · Palette generator →

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