#3342AE#3342AE

#3342AE is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.7% C 0.172 H 271.3°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#3342AE
RGBrgb(51, 66, 174)
HSLhsl(233, 55%, 44%)
HSVhsv(233, 71%, 68%)
CMYKcmyk(70.7%, 62.1%, 0%, 31.8%)
CIE-LABlab(33.25, 31.00, -59.43)
CIE-LCHlch(33.25, 67.03, 297.55°)
OKLaboklab(43.69% 0.0038 -0.1715)
OKLCHoklch(43.69% 0.172 271.3)
XYZxyz(10.9508, 7.6552, 40.9367)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3342AE #AE9F33
analogous
#3380AE #3342AE #6233AE
triadic
#3342AE #AE3342 #42AE33
tetradic
#3342AE #AE3380 #AE9F33 #33AE62
square
#3342AE #AE3380 #AE9F33 #33AE62
split-complementary
#3342AE #AE6233 #80AE33
monochromatic
#171E4F #25307F #3342AE #5261CC #818CDA

Accessibility & contrast

On white

8.30
#3342AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#3342AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3342AE
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3342AE#FFFFFF#000000##FFFFFF
##3342AE1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3342ae;
/* rgb */ color: rgb(51, 66, 174);
/* oklch */ color: oklch(43.7% 0.172 271.3);
Tailwind
colors: {
  custom: {
    50: '#7b76c7',
    500: '#3342ae',
    950: '#000000',
  },
}
SCSS
$custom: #3342ae;
$custom-light: #7b76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3342ae",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 232.683,
    "s": 54.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43685,
    "c": 0.17156,
    "h": 271.3
  },
  "luminance": 0.07656
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3342AE

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

Preview Lab → · Contrast checker → · Palette generator →

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