#332FAA#332FAA

#332FAA is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.1% C 0.188 H 275.2°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#332FAA
RGBrgb(51, 47, 170)
HSLhsl(242, 57%, 43%)
HSVhsv(242, 72%, 67%)
CMYKcmyk(70%, 72.4%, 0%, 33.3%)
CIE-LABlab(28.48, 41.41, -64.86)
CIE-LCHlch(28.48, 76.95, 302.56°)
OKLaboklab(40.11% 0.0171 -0.1875)
OKLCHoklch(40.11% 0.188 275.2)
XYZxyz(9.6351, 5.6382, 38.6029)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FAA #A6AA2F
analogous
#2F69AA #332FAA #702FAA
triadic
#332FAA #AA332F #2FAA33
tetradic
#332FAA #AA2F69 #A6AA2F #2FAA70
square
#332FAA #AA2F69 #A6AA2F #2FAA70
split-complementary
#332FAA #AA702F #69AA2F
monochromatic
#16144A #25227A #332FAA #4E49CD #7C79DA

Accessibility & contrast

On white

9.87
#332FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#332FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FAA
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FAA#FFFFFF#000000##FFFFFF
##332FAA1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#003EA8
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #332faa;
/* rgb */ color: rgb(51, 47, 170);
/* oklch */ color: oklch(40.1% 0.188 275.2);
Tailwind
colors: {
  custom: {
    50: '#7c69c4',
    500: '#332faa',
    950: '#000000',
  },
}
SCSS
$custom: #332faa;
$custom-light: #7c69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#332faa",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 241.951,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40105,
    "c": 0.18825,
    "h": 275.2
  },
  "luminance": 0.05639
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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