#332A85#332A85

#332A85 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.146 H 280.5°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#332A85
RGBrgb(51, 42, 133)
HSLhsl(246, 52%, 34%)
HSVhsv(246, 68%, 52%)
CMYKcmyk(61.7%, 68.4%, 0%, 47.8%)
CIE-LABlab(23.84, 31.94, -49.77)
CIE-LCHlch(23.84, 59.14, 302.69°)
OKLaboklab(35.7% 0.0266 -0.1433)
OKLCHoklch(35.7% 0.146 280.5)
XYZxyz(6.4255, 4.0527, 22.6294)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332A85 #7C852A
analogous
#2A4F85 #332A85 #612A85
triadic
#332A85 #85332A #2A8533
tetradic
#332A85 #852A4F #7C852A #2A8561
square
#332A85 #852A4F #7C852A #2A8561
split-complementary
#332A85 #85612A #4F852A
monochromatic
#0F0D28 #211B56 #332A85 #4539B4 #685DCC

Accessibility & contrast

On white

11.60
#332A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#332A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332A85
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332A85#FFFFFF#000000##FFFFFF
##332A851.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C88
Deuteranopia (green-blind)
#003583
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332a85;
/* rgb */ color: rgb(51, 42, 133);
/* oklch */ color: oklch(35.7% 0.146 280.5);
Tailwind
colors: {
  custom: {
    50: '#7564a9',
    500: '#332a85',
    950: '#000000',
  },
}
SCSS
$custom: #332a85;
$custom-light: #7564a9;
$custom-dark: #000000;
JSON
{
  "hex": "#332a85",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 245.934,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35699,
    "c": 0.14576,
    "h": 280.5
  },
  "luminance": 0.04053
}

Semantic roles & 50–950 ramp

primary
#332A85
secondary
#A9B259
accent
#DB4CCD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #332A85

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

Preview Lab → · Contrast checker → · Palette generator →

#332A85 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva