#332987#332987

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

Color values

HEX#332987
RGBrgb(51, 41, 135)
HSLhsl(246, 53%, 35%)
HSVhsv(246, 70%, 53%)
CMYKcmyk(62.2%, 69.6%, 0%, 47.1%)
CIE-LABlab(23.80, 33.24, -51.10)
CIE-LCHlch(23.80, 60.96, 303.04°)
OKLaboklab(35.72% 0.0272 -0.1472)
OKLCHoklch(35.72% 0.15 280.4)
XYZxyz(6.5300, 4.0385, 23.3524)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332987 #7D8729
analogous
#294E87 #332987 #622987
triadic
#332987 #873329 #298733
tetradic
#332987 #87294E #7D8729 #298762
square
#332987 #87294E #7D8729 #298762
split-complementary
#332987 #876229 #4E8729
monochromatic
#100C29 #211B58 #332987 #4537B6 #695DCE

Accessibility & contrast

On white

11.62
#332987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332987
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332987#FFFFFF#000000##FFFFFF
##3329871.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332987;
/* rgb */ color: rgb(51, 41, 135);
/* oklch */ color: oklch(35.7% 0.150 280.4);
Tailwind
colors: {
  custom: {
    50: '#7564ab',
    500: '#332987',
    950: '#000000',
  },
}
SCSS
$custom: #332987;
$custom-light: #7564ab;
$custom-dark: #000000;
JSON
{
  "hex": "#332987",
  "rgb": {
    "r": 51,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 246.383,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35722,
    "c": 0.1497,
    "h": 280.4
  },
  "luminance": 0.04039
}

Semantic roles & 50–950 ramp

primary
#332987
secondary
#AAB359
accent
#DD4BCD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #332987

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

Preview Lab → · Contrast checker → · Palette generator →

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