#332B7D#332B7D

#332B7D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.133 H 281.4°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#332B7D
RGBrgb(51, 43, 125)
HSLhsl(246, 49%, 33%)
HSVhsv(246, 66%, 49%)
CMYKcmyk(59.2%, 65.6%, 0%, 51%)
CIE-LABlab(23.38, 28.57, -45.49)
CIE-LCHlch(23.38, 53.72, 302.13°)
OKLaboklab(35.14% 0.0265 -0.1308)
OKLCHoklch(35.14% 0.133 281.4)
XYZxyz(5.9296, 3.9118, 19.8407)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332B7D #757D2B
analogous
#2B4C7D #332B7D #5C2B7D
triadic
#332B7D #7D332B #2B7D33
tetradic
#332B7D #7D2B4C #757D2B #2B7D5C
square
#332B7D #7D2B4C #757D2B #2B7D5C
split-complementary
#332B7D #7D5C2B #4C7D2B
monochromatic
#0E0C22 #201B4F #332B7D #463BAB #665CC7

Accessibility & contrast

On white

11.78
#332B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#332B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332B7D
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332B7D#FFFFFF#000000##FFFFFF
##332B7D1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#0A3F4F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #332b7d;
/* rgb */ color: rgb(51, 43, 125);
/* oklch */ color: oklch(35.1% 0.133 281.4);
Tailwind
colors: {
  custom: {
    50: '#7365a3',
    500: '#332b7d',
    950: '#000000',
  },
}
SCSS
$custom: #332b7d;
$custom-light: #7365a3;
$custom-dark: #000000;
JSON
{
  "hex": "#332b7d",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 245.854,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35141,
    "c": 0.13341,
    "h": 281.4
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

primary
#332B7D
secondary
#A4AD57
accent
#D84FCB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #332B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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