#3342CC#3342CC

#3342CC is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.4% C 0.210 H 270.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#3342CC
RGBrgb(51, 66, 204)
HSLhsl(234, 60%, 50%)
HSVhsv(234, 75%, 80%)
CMYKcmyk(75%, 67.6%, 0%, 20%)
CIE-LABlab(35.90, 41.64, -72.73)
CIE-LCHlch(35.90, 83.80, 299.79°)
OKLaboklab(46.44% 0.0019 -0.2104)
OKLCHoklch(46.44% 0.21 270.5)
XYZxyz(14.2088, 8.9583, 58.0953)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3342CC #CCBD33
analogous
#338ECC #3342CC #7133CC
triadic
#3342CC #CC3342 #42CC33
tetradic
#3342CC #CC338E #CCBD33 #33CC71
square
#3342CC #CC338E #CCBD33 #33CC71
split-complementary
#3342CC #CC7133 #8ECC33
monochromatic
#1B226A #27329B #3342CC #646FD8 #959DE4

Accessibility & contrast

On white

7.52
#3342CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#3342CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3342CC
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3342CC#FFFFFF#000000##FFFFFF
##3342CC1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#004DC9
Tritanopia (blue-blind)
#006881
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3342cc;
/* rgb */ color: rgb(51, 66, 204);
/* oklch */ color: oklch(46.4% 0.210 270.5);
Tailwind
colors: {
  custom: {
    50: '#8277dd',
    500: '#3342cc',
    950: '#000000',
  },
}
SCSS
$custom: #3342cc;
$custom-light: #8277dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3342cc",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 234.118,
    "s": 60,
    "l": 50
  },
  "oklch": {
    "l": 0.46437,
    "c": 0.21045,
    "h": 270.5
  },
  "luminance": 0.0896
}

Semantic roles & 50–950 ramp

primary
#3342CC
secondary
#D0C98B
accent
#D445E3
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3342CC

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

Preview Lab → · Contrast checker → · Palette generator →

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