#3342BF#3342BF

#3342BF is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.2% C 0.194 H 270.9°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#3342BF
RGBrgb(51, 66, 191)
HSLhsl(234, 58%, 47%)
HSVhsv(234, 73%, 75%)
CMYKcmyk(73.3%, 65.4%, 0%, 25.1%)
CIE-LABlab(34.72, 37.08, -67.08)
CIE-LCHlch(34.72, 76.64, 298.93°)
OKLaboklab(45.22% 0.0029 -0.1939)
OKLCHoklch(45.22% 0.194 270.9)
XYZxyz(12.7142, 8.3605, 50.2238)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3342BF #BFB033
analogous
#3388BF #3342BF #6A33BF
triadic
#3342BF #BF3342 #42BF33
tetradic
#3342BF #BF3388 #BFB033 #33BF6A
square
#3342BF #BF3388 #BFB033 #33BF6A
split-complementary
#3342BF #BF6A33 #88BF33
monochromatic
#19215E #26318F #3342BF #5C69D3 #8C95E0

Accessibility & contrast

On white

7.86
#3342BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3342BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3342BF
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3342BF#FFFFFF#000000##FFFFFF
##3342BF1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#004BBD
Tritanopia (blue-blind)
#00637A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3342bf;
/* rgb */ color: rgb(51, 66, 191);
/* oklch */ color: oklch(45.2% 0.194 270.9);
Tailwind
colors: {
  custom: {
    50: '#7f76d3',
    500: '#3342bf',
    950: '#000000',
  },
}
SCSS
$custom: #3342bf;
$custom-light: #7f76d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3342bf",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 233.571,
    "s": 57.851,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45217,
    "c": 0.19395,
    "h": 270.9
  },
  "luminance": 0.08362
}

Semantic roles & 50–950 ramp

primary
#3342BF
secondary
#CBC383
accent
#D147E1
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3342BF

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

Preview Lab → · Contrast checker → · Palette generator →

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