#332D79#332D79

#332D79 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.125 H 281.4°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#332D79
RGBrgb(51, 45, 121)
HSLhsl(245, 46%, 33%)
HSVhsv(245, 63%, 47%)
CMYKcmyk(57.9%, 62.8%, 0%, 52.5%)
CIE-LABlab(23.54, 25.89, -42.69)
CIE-LCHlch(23.54, 49.93, 301.23°)
OKLaboklab(35.15% 0.0247 -0.1225)
OKLCHoklch(35.15% 0.125 281.4)
XYZxyz(5.7537, 3.9607, 18.5468)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332D79 #73792D
analogous
#2D4D79 #332D79 #592D79
triadic
#332D79 #79332D #2D7933
tetradic
#332D79 #792D4D #73792D #2D7959
square
#332D79 #792D4D #73792D #2D7959
split-complementary
#332D79 #79592D #4D792D
monochromatic
#0D0C20 #201C4C #332D79 #463EA6 #655DC3

Accessibility & contrast

On white

11.72
#332D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#332D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332D79
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332D79#FFFFFF#000000##FFFFFF
##332D791.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#103F4E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #332d79;
/* rgb */ color: rgb(51, 45, 121);
/* oklch */ color: oklch(35.2% 0.125 281.4);
Tailwind
colors: {
  custom: {
    50: '#7266a0',
    500: '#332d79',
    950: '#000000',
  },
}
SCSS
$custom: #332d79;
$custom-light: #7266a0;
$custom-dark: #000000;
JSON
{
  "hex": "#332d79",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 244.737,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35155,
    "c": 0.12498,
    "h": 281.4
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

primary
#332D79
secondary
#A3A958
accent
#D552CB
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #332D79

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

Preview Lab → · Contrast checker → · Palette generator →

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