#332FA9#332FA9

#332FA9 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.0% C 0.187 H 275.3°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#332FA9
RGBrgb(51, 47, 169)
HSLhsl(242, 56%, 42%)
HSVhsv(242, 72%, 66%)
CMYKcmyk(69.8%, 72.2%, 0%, 33.7%)
CIE-LABlab(28.38, 41.07, -64.42)
CIE-LCHlch(28.38, 76.40, 302.52°)
OKLaboklab(40% 0.0172 -0.1862)
OKLCHoklch(40% 0.187 275.3)
XYZxyz(9.5408, 5.6005, 38.1066)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FA9 #A5A92F
analogous
#2F68A9 #332FA9 #702FA9
triadic
#332FA9 #A9332F #2FA933
tetradic
#332FA9 #A92F68 #A5A92F #2FA970
square
#332FA9 #A92F68 #A5A92F #2FA970
split-complementary
#332FA9 #A9702F #68A92F
monochromatic
#161449 #252279 #332FA9 #4D49CC #7C79DA

Accessibility & contrast

On white

9.90
#332FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#332FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FA9
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FA9#FFFFFF#000000##FFFFFF
##332FA91.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#003DA7
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #332fa9;
/* rgb */ color: rgb(51, 47, 169);
/* oklch */ color: oklch(40.0% 0.187 275.3);
Tailwind
colors: {
  custom: {
    50: '#7c69c4',
    500: '#332fa9',
    950: '#000000',
  },
}
SCSS
$custom: #332fa9;
$custom-light: #7c69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#332fa9",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 241.967,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40004,
    "c": 0.187,
    "h": 275.3
  },
  "luminance": 0.05601
}

Semantic roles & 50–950 ramp

primary
#332FA9
secondary
#BFC272
accent
#E048DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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