#3342BD#3342BD

#3342BD is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.0% C 0.191 H 270.9°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#3342BD
RGBrgb(51, 66, 189)
HSLhsl(233, 58%, 47%)
HSVhsv(233, 73%, 74%)
CMYKcmyk(73%, 65.1%, 0%, 25.9%)
CIE-LABlab(34.55, 36.37, -66.19)
CIE-LCHlch(34.55, 75.53, 298.79°)
OKLaboklab(45.03% 0.0031 -0.1913)
OKLCHoklch(45.03% 0.191 270.9)
XYZxyz(12.4956, 8.2731, 49.0726)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3342BD #BDAE33
analogous
#3387BD #3342BD #6933BD
triadic
#3342BD #BD3342 #42BD33
tetradic
#3342BD #BD3387 #BDAE33 #33BD69
square
#3342BD #BD3387 #BDAE33 #33BD69
split-complementary
#3342BD #BD6933 #87BD33
monochromatic
#19205D #26318D #3342BD #5B68D3 #8B94E0

Accessibility & contrast

On white

7.91
#3342BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#3342BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3342BD
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3342BD#FFFFFF#000000##FFFFFF
##3342BD1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#004BBB
Tritanopia (blue-blind)
#006279
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3342bd;
/* rgb */ color: rgb(51, 66, 189);
/* oklch */ color: oklch(45.0% 0.191 270.9);
Tailwind
colors: {
  custom: {
    50: '#7f76d2',
    500: '#3342bd',
    950: '#000000',
  },
}
SCSS
$custom: #3342bd;
$custom-light: #7f76d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3342bd",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 233.478,
    "s": 57.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45033,
    "c": 0.19136,
    "h": 270.9
  },
  "luminance": 0.08274
}

Semantic roles & 50–950 ramp

primary
#3342BD
secondary
#CAC282
accent
#D047E1
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3342BD

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

Preview Lab → · Contrast checker → · Palette generator →

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