#3342B3#3342B3

#3342B3 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.1% C 0.178 H 271.2°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#3342B3
RGBrgb(51, 66, 179)
HSLhsl(233, 56%, 45%)
HSVhsv(233, 72%, 70%)
CMYKcmyk(71.5%, 63.1%, 0%, 29.8%)
CIE-LABlab(33.68, 32.80, -61.71)
CIE-LCHlch(33.68, 69.89, 297.99°)
OKLaboklab(44.13% 0.0036 -0.1782)
OKLCHoklch(44.13% 0.178 271.2)
XYZxyz(11.4474, 7.8538, 43.5517)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3342B3 #B3A433
analogous
#3382B3 #3342B3 #6433B3
triadic
#3342B3 #B33342 #42B333
tetradic
#3342B3 #B33382 #B3A433 #33B364
square
#3342B3 #B33382 #B3A433 #33B364
split-complementary
#3342B3 #B36433 #82B333
monochromatic
#181F54 #253083 #3342B3 #5563CE #848FDC

Accessibility & contrast

On white

8.17
#3342B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#3342B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3342B3
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3342B3#FFFFFF#000000##FFFFFF
##3342B31.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3342b3;
/* rgb */ color: rgb(51, 66, 179);
/* oklch */ color: oklch(44.1% 0.178 271.2);
Tailwind
colors: {
  custom: {
    50: '#7c76cb',
    500: '#3342b3',
    950: '#000000',
  },
}
SCSS
$custom: #3342b3;
$custom-light: #7c76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3342b3",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 232.969,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44127,
    "c": 0.17825,
    "h": 271.2
  },
  "luminance": 0.07855
}

Semantic roles & 50–950 ramp

primary
#3342B3
secondary
#C6BD7C
accent
#CD49DF
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3342B3

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

Preview Lab → · Contrast checker → · Palette generator →

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