#3342AD#3342AD

#3342AD is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.6% C 0.170 H 271.3°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#3342AD
RGBrgb(51, 66, 173)
HSLhsl(233, 54%, 44%)
HSVhsv(233, 71%, 68%)
CMYKcmyk(70.5%, 61.8%, 0%, 32.2%)
CIE-LABlab(33.17, 30.63, -58.97)
CIE-LCHlch(33.17, 66.45, 297.45°)
OKLaboklab(43.6% 0.0038 -0.1702)
OKLCHoklch(43.6% 0.17 271.3)
XYZxyz(10.8537, 7.6163, 40.4252)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3342AD #AD9E33
analogous
#337FAD #3342AD #6133AD
triadic
#3342AD #AD3342 #42AD33
tetradic
#3342AD #AD337F #AD9E33 #33AD61
square
#3342AD #AD337F #AD9E33 #33AD61
split-complementary
#3342AD #AD6133 #7FAD33
monochromatic
#171E4E #25307E #3342AD #5160CC #818CDA

Accessibility & contrast

On white

8.32
#3342AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#3342AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3342AD
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3342AD#FFFFFF#000000##FFFFFF
##3342AD1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B0
Deuteranopia (green-blind)
#0049AB
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3342ad;
/* rgb */ color: rgb(51, 66, 173);
/* oklch */ color: oklch(43.6% 0.170 271.3);
Tailwind
colors: {
  custom: {
    50: '#7b76c6',
    500: '#3342ad',
    950: '#000000',
  },
}
SCSS
$custom: #3342ad;
$custom-light: #7b76c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3342ad",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 173
  },
  "hsl": {
    "h": 232.623,
    "s": 54.464,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43598,
    "c": 0.17021,
    "h": 271.3
  },
  "luminance": 0.07617
}

Semantic roles & 50–950 ramp

primary
#3342AD
secondary
#C3BA79
accent
#CC4ADE
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3342AD

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

Preview Lab → · Contrast checker → · Palette generator →

#3342AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva