#332AA9#332AA9

#332AA9 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.3% C 0.192 H 276.0°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#332AA9
RGBrgb(51, 42, 169)
HSLhsl(244, 60%, 41%)
HSVhsv(244, 75%, 66%)
CMYKcmyk(69.8%, 75.1%, 0%, 33.7%)
CIE-LABlab(27.36, 43.93, -66.10)
CIE-LCHlch(27.36, 79.37, 303.61°)
OKLaboklab(39.28% 0.0201 -0.1911)
OKLCHoklch(39.28% 0.192 276)
XYZxyz(9.3523, 5.2234, 38.0438)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AA9 #A0A92A
analogous
#2A61A9 #332AA9 #732AA9
triadic
#332AA9 #A9332A #2AA933
tetradic
#332AA9 #A92A61 #A0A92A #2AA973
square
#332AA9 #A92A61 #A0A92A #2AA973
split-complementary
#332AA9 #A9732A #61A92A
monochromatic
#151247 #241E78 #332AA9 #4B41D0 #7972DC

Accessibility & contrast

On white

10.27
#332AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#332AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AA9
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AA9#FFFFFF#000000##FFFFFF
##332AA91.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#003BA7
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #332aa9;
/* rgb */ color: rgb(51, 42, 169);
/* oklch */ color: oklch(39.3% 0.192 276.0);
Tailwind
colors: {
  custom: {
    50: '#7c66c4',
    500: '#332aa9',
    950: '#000000',
  },
}
SCSS
$custom: #332aa9;
$custom-light: #7c66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#332aa9",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 244.252,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39279,
    "c": 0.19213,
    "h": 276
  },
  "luminance": 0.05224
}

Semantic roles & 50–950 ramp

primary
#332AA9
secondary
#BDC36C
accent
#E344D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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