#332DAB#332DAB

#332DAB is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.9% C 0.192 H 275.4°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#332DAB
RGBrgb(51, 45, 171)
HSLhsl(243, 58%, 42%)
HSVhsv(243, 74%, 67%)
CMYKcmyk(70.2%, 73.7%, 0%, 32.9%)
CIE-LABlab(28.17, 42.89, -65.98)
CIE-LCHlch(28.17, 78.70, 303.03°)
OKLaboklab(39.91% 0.0181 -0.1907)
OKLCHoklch(39.91% 0.192 275.4)
XYZxyz(9.6519, 5.5200, 39.0770)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332DAB #A5AB2D
analogous
#2D66AB #332DAB #722DAB
triadic
#332DAB #AB332D #2DAB33
tetradic
#332DAB #AB2D66 #A5AB2D #2DAB72
square
#332DAB #AB2D66 #A5AB2D #2DAB72
split-complementary
#332DAB #AB722D #66AB2D
monochromatic
#16144A #25207B #332DAB #4D47CE #7C77DB

Accessibility & contrast

On white

9.98
#332DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#332DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332DAB
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332DAB#FFFFFF#000000##FFFFFF
##332DAB1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#003DA9
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #332dab;
/* rgb */ color: rgb(51, 45, 171);
/* oklch */ color: oklch(39.9% 0.192 275.4);
Tailwind
colors: {
  custom: {
    50: '#7c68c5',
    500: '#332dab',
    950: '#000000',
  },
}
SCSS
$custom: #332dab;
$custom-light: #7c68c5;
$custom-dark: #000000;
JSON
{
  "hex": "#332dab",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 242.857,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.39912,
    "c": 0.19158,
    "h": 275.4
  },
  "luminance": 0.05521
}

Semantic roles & 50–950 ramp

primary
#332DAB
secondary
#BFC371
accent
#E246DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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