#3342B6#3342B6

#3342B6 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.4% C 0.182 H 271.1°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#3342B6
RGBrgb(51, 66, 182)
HSLhsl(233, 56%, 46%)
HSVhsv(233, 72%, 71%)
CMYKcmyk(72%, 63.7%, 0%, 28.6%)
CIE-LABlab(33.93, 33.88, -63.07)
CIE-LCHlch(33.93, 71.59, 298.24°)
OKLaboklab(44.4% 0.0035 -0.1822)
OKLCHoklch(44.4% 0.182 271.1)
XYZxyz(11.7541, 7.9764, 45.1671)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3342B6 #B6A733
analogous
#3383B6 #3342B6 #6533B6
triadic
#3342B6 #B63342 #42B633
tetradic
#3342B6 #B63383 #B6A733 #33B665
square
#3342B6 #B63383 #B6A733 #33B665
split-complementary
#3342B6 #B66533 #83B633
monochromatic
#181F56 #263186 #3342B6 #5664D0 #8690DD

Accessibility & contrast

On white

8.09
#3342B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#3342B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3342B6
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3342B6#FFFFFF#000000##FFFFFF
##3342B61.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#004AB4
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3342b6;
/* rgb */ color: rgb(51, 66, 182);
/* oklch */ color: oklch(44.4% 0.182 271.1);
Tailwind
colors: {
  custom: {
    50: '#7d76cd',
    500: '#3342b6',
    950: '#000000',
  },
}
SCSS
$custom: #3342b6;
$custom-light: #7d76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3342b6",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 182
  },
  "hsl": {
    "h": 233.13,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44396,
    "c": 0.18222,
    "h": 271.1
  },
  "luminance": 0.07978
}

Semantic roles & 50–950 ramp

primary
#3342B6
secondary
#C7BE7E
accent
#CE48E0
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3342B6

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

Preview Lab → · Contrast checker → · Palette generator →

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