#332F84#332F84

#332F84 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.138 H 279.2°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#332F84
RGBrgb(51, 47, 132)
HSLhsl(243, 47%, 35%)
HSVhsv(243, 64%, 52%)
CMYKcmyk(61.4%, 64.4%, 0%, 48.2%)
CIE-LABlab(24.96, 28.40, -47.32)
CIE-LCHlch(24.96, 55.19, 300.96°)
OKLaboklab(36.48% 0.022 -0.1361)
OKLCHoklch(36.48% 0.138 279.2)
XYZxyz(6.5453, 4.4023, 22.3301)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332F84 #80842F
analogous
#2F5584 #332F84 #5E2F84
triadic
#332F84 #84332F #2F8433
tetradic
#332F84 #842F55 #80842F #2F845E
square
#332F84 #842F55 #80842F #2F845E
split-complementary
#332F84 #845E2F #55842F
monochromatic
#100F2A #221F57 #332F84 #443FB1 #6A65C8

Accessibility & contrast

On white

11.17
#332F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#332F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332F84
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332F84#FFFFFF#000000##FFFFFF
##332F841.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F87
Deuteranopia (green-blind)
#003882
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332f84;
/* rgb */ color: rgb(51, 47, 132);
/* oklch */ color: oklch(36.5% 0.138 279.2);
Tailwind
colors: {
  custom: {
    50: '#7468a9',
    500: '#332f84',
    950: '#000000',
  },
}
SCSS
$custom: #332f84;
$custom-light: #7468a9;
$custom-dark: #000000;
JSON
{
  "hex": "#332f84",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 242.824,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36482,
    "c": 0.13788,
    "h": 279.2
  },
  "luminance": 0.04403
}

Semantic roles & 50–950 ramp

primary
#332F84
secondary
#ABAF60
accent
#D751D1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #332F84

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

Preview Lab → · Contrast checker → · Palette generator →

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