#3342B2#3342B2

#3342B2 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.0% C 0.177 H 271.2°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#3342B2
RGBrgb(51, 66, 178)
HSLhsl(233, 55%, 45%)
HSVhsv(233, 71%, 70%)
CMYKcmyk(71.3%, 62.9%, 0%, 30.2%)
CIE-LABlab(33.59, 32.44, -61.26)
CIE-LCHlch(33.59, 69.32, 297.90°)
OKLaboklab(44.04% 0.0036 -0.1769)
OKLCHoklch(44.04% 0.177 271.2)
XYZxyz(11.3466, 7.8135, 43.0210)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3342B2 #B2A333
analogous
#3382B2 #3342B2 #6333B2
triadic
#3342B2 #B23342 #42B233
tetradic
#3342B2 #B23382 #B2A333 #33B263
square
#3342B2 #B23382 #B2A333 #33B263
split-complementary
#3342B2 #B26333 #82B233
monochromatic
#181F53 #253082 #3342B2 #5463CE #848EDC

Accessibility & contrast

On white

8.19
#3342B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3342B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3342B2
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3342B2#FFFFFF#000000##FFFFFF
##3342B21.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3342b2;
/* rgb */ color: rgb(51, 66, 178);
/* oklch */ color: oklch(44.0% 0.177 271.2);
Tailwind
colors: {
  custom: {
    50: '#7c76ca',
    500: '#3342b2',
    950: '#000000',
  },
}
SCSS
$custom: #3342b2;
$custom-light: #7c76ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3342b2",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 232.913,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44038,
    "c": 0.17692,
    "h": 271.2
  },
  "luminance": 0.07815
}

Semantic roles & 50–950 ramp

primary
#3342B2
secondary
#C5BC7C
accent
#CD49DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3342B2

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

Preview Lab → · Contrast checker → · Palette generator →

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