#3342AC#3342AC

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

Color values

HEX#3342AC
RGBrgb(51, 66, 172)
HSLhsl(233, 54%, 44%)
HSVhsv(233, 70%, 67%)
CMYKcmyk(70.3%, 61.6%, 0%, 32.5%)
CIE-LABlab(33.09, 30.27, -58.51)
CIE-LCHlch(33.09, 65.88, 297.36°)
OKLaboklab(43.51% 0.0038 -0.1688)
OKLCHoklch(43.51% 0.169 271.3)
XYZxyz(10.7573, 7.5777, 39.9175)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3342AC #AC9D33
analogous
#337EAC #3342AC #6033AC
triadic
#3342AC #AC3342 #42AC33
tetradic
#3342AC #AC337E #AC9D33 #33AC60
square
#3342AC #AC337E #AC9D33 #33AC60
split-complementary
#3342AC #AC6033 #7EAC33
monochromatic
#171E4E #25307D #3342AC #5160CB #808BD9

Accessibility & contrast

On white

8.35
#3342AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3342AC
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3342AC#FFFFFF#000000##FFFFFF
##3342AC1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#0048AA
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3342ac;
/* rgb */ color: rgb(51, 66, 172);
/* oklch */ color: oklch(43.5% 0.169 271.3);
Tailwind
colors: {
  custom: {
    50: '#7b76c6',
    500: '#3342ac',
    950: '#000000',
  },
}
SCSS
$custom: #3342ac;
$custom-light: #7b76c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3342ac",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 232.562,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4351,
    "c": 0.16885,
    "h": 271.3
  },
  "luminance": 0.07579
}

Semantic roles & 50–950 ramp

primary
#3342AC
secondary
#C2B978
accent
#CB4ADE
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3342AC

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

Preview Lab → · Contrast checker → · Palette generator →

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