#332D7E#332D7E

#332D7E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.132 H 280.6°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#332D7E
RGBrgb(51, 45, 126)
HSLhsl(244, 47%, 34%)
HSVhsv(244, 64%, 49%)
CMYKcmyk(59.5%, 64.3%, 0%, 50.6%)
CIE-LABlab(23.96, 27.62, -45.19)
CIE-LCHlch(23.96, 52.96, 301.43°)
OKLaboklab(35.59% 0.0244 -0.1298)
OKLCHoklch(35.59% 0.132 280.6)
XYZxyz(6.0683, 4.0865, 20.2036)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332D7E #787E2D
analogous
#2D4F7E #332D7E #5B2D7E
triadic
#332D7E #7E332D #2D7E33
tetradic
#332D7E #7E2D4F #787E2D #2D7E5B
square
#332D7E #7E2D4F #787E2D #2D7E5B
split-complementary
#332D7E #7E5B2D #4F7E2D
monochromatic
#0E0D24 #211D51 #332D7E #453DAB #675FC6

Accessibility & contrast

On white

11.55
#332D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#332D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332D7E
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332D7E#FFFFFF#000000##FFFFFF
##332D7E1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#074151
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332d7e;
/* rgb */ color: rgb(51, 45, 126);
/* oklch */ color: oklch(35.6% 0.132 280.6);
Tailwind
colors: {
  custom: {
    50: '#7366a4',
    500: '#332d7e',
    950: '#000000',
  },
}
SCSS
$custom: #332d7e;
$custom-light: #7366a4;
$custom-dark: #000000;
JSON
{
  "hex": "#332d7e",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 244.444,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35589,
    "c": 0.13212,
    "h": 280.6
  },
  "luminance": 0.04087
}

Semantic roles & 50–950 ramp

primary
#332D7E
secondary
#A6AC5A
accent
#D751CD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #332D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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