#332A7D#332A7D

#332A7D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.135 H 281.8°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#332A7D
RGBrgb(51, 42, 125)
HSLhsl(247, 50%, 33%)
HSVhsv(247, 66%, 49%)
CMYKcmyk(59.2%, 66.4%, 0%, 51%)
CIE-LABlab(23.14, 29.22, -45.89)
CIE-LCHlch(23.14, 54.40, 302.48°)
OKLaboklab(34.96% 0.0275 -0.1319)
OKLCHoklch(34.96% 0.135 281.8)
XYZxyz(5.8937, 3.8400, 19.8287)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332A7D #747D2A
analogous
#2A4A7D #332A7D #5C2A7D
triadic
#332A7D #7D332A #2A7D33
tetradic
#332A7D #7D2A4A #747D2A #2A7D5C
square
#332A7D #7D2A4A #747D2A #2A7D5C
split-complementary
#332A7D #7D5C2A #4A7D2A
monochromatic
#0E0B21 #201B4F #332A7D #4639AB #665AC8

Accessibility & contrast

On white

11.88
#332A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#332A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332A7D
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332A7D#FFFFFF#000000##FFFFFF
##332A7D1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#0A3F4F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #332a7d;
/* rgb */ color: rgb(51, 42, 125);
/* oklch */ color: oklch(35.0% 0.135 281.8);
Tailwind
colors: {
  custom: {
    50: '#7364a3',
    500: '#332a7d',
    950: '#000000',
  },
}
SCSS
$custom: #332a7d;
$custom-light: #7364a3;
$custom-dark: #000000;
JSON
{
  "hex": "#332a7d",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 246.506,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34964,
    "c": 0.13476,
    "h": 281.8
  },
  "luminance": 0.0384
}

Semantic roles & 50–950 ramp

primary
#332A7D
secondary
#A4AD56
accent
#D94FCA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #332A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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