#332D8D#332D8D

#332D8D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.153 H 278.6°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#332D8D
RGBrgb(51, 45, 141)
HSLhsl(244, 52%, 36%)
HSVhsv(244, 68%, 55%)
CMYKcmyk(63.8%, 68.1%, 0%, 44.7%)
CIE-LABlab(25.27, 32.79, -52.43)
CIE-LCHlch(25.27, 61.84, 302.02°)
OKLaboklab(36.95% 0.0229 -0.1511)
OKLCHoklch(36.95% 0.153 278.6)
XYZxyz(7.1098, 4.5031, 25.6887)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332D8D #878D2D
analogous
#2D578D #332D8D #632D8D
triadic
#332D8D #8D332D #2D8D33
tetradic
#332D8D #8D2D57 #878D2D #2D8D63
square
#332D8D #8D2D57 #878D2D #2D8D63
split-complementary
#332D8D #8D632D #578D2D
monochromatic
#110F30 #221E5F #332D8D #443CBB #6D66CE

Accessibility & contrast

On white

11.05
#332D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#332D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332D8D
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332D8D#FFFFFF#000000##FFFFFF
##332D8D1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #332d8d;
/* rgb */ color: rgb(51, 45, 141);
/* oklch */ color: oklch(37.0% 0.153 278.6);
Tailwind
colors: {
  custom: {
    50: '#7667af',
    500: '#332d8d',
    950: '#000000',
  },
}
SCSS
$custom: #332d8d;
$custom-light: #7667af;
$custom-dark: #000000;
JSON
{
  "hex": "#332d8d",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 243.75,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36954,
    "c": 0.15284,
    "h": 278.6
  },
  "luminance": 0.04504
}

Semantic roles & 50–950 ramp

primary
#332D8D
secondary
#B0B561
accent
#DB4DD2
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #332D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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