#3342BE#3342BE

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

Color values

HEX#3342BE
RGBrgb(51, 66, 190)
HSLhsl(234, 58%, 47%)
HSVhsv(234, 73%, 75%)
CMYKcmyk(73.2%, 65.3%, 0%, 25.5%)
CIE-LABlab(34.63, 36.73, -66.64)
CIE-LCHlch(34.63, 76.09, 298.86°)
OKLaboklab(45.13% 0.003 -0.1926)
OKLCHoklch(45.13% 0.193 270.9)
XYZxyz(12.6046, 8.3166, 49.6462)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3342BE #BEAF33
analogous
#3388BE #3342BE #6933BE
triadic
#3342BE #BE3342 #42BE33
tetradic
#3342BE #BE3388 #BEAF33 #33BE69
square
#3342BE #BE3388 #BEAF33 #33BE69
split-complementary
#3342BE #BE6933 #88BE33
monochromatic
#19205E #26318E #3342BE #5B68D3 #8B95E0

Accessibility & contrast

On white

7.88
#3342BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3342BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3342BE
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3342BE#FFFFFF#000000##FFFFFF
##3342BE1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#004BBC
Tritanopia (blue-blind)
#00637A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3342be;
/* rgb */ color: rgb(51, 66, 190);
/* oklch */ color: oklch(45.1% 0.193 270.9);
Tailwind
colors: {
  custom: {
    50: '#7f76d3',
    500: '#3342be',
    950: '#000000',
  },
}
SCSS
$custom: #3342be;
$custom-light: #7f76d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3342be",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 233.525,
    "s": 57.676,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45125,
    "c": 0.19266,
    "h": 270.9
  },
  "luminance": 0.08318
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3342BE

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

Preview Lab → · Contrast checker → · Palette generator →

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