#3340B6#3340B6

#3340B6 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.0% C 0.185 H 271.5°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#3340B6
RGBrgb(51, 64, 182)
HSLhsl(234, 56%, 46%)
HSVhsv(234, 72%, 71%)
CMYKcmyk(72%, 64.8%, 0%, 28.6%)
CIE-LABlab(33.45, 35.15, -63.86)
CIE-LCHlch(33.45, 72.89, 298.83°)
OKLaboklab(44.04% 0.0048 -0.1845)
OKLCHoklch(44.04% 0.185 271.5)
XYZxyz(11.6393, 7.7468, 45.1288)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340B6 #B6A933
analogous
#3381B6 #3340B6 #6733B6
triadic
#3340B6 #B63340 #40B633
tetradic
#3340B6 #B63381 #B6A933 #33B667
square
#3340B6 #B63381 #B6A933 #33B667
split-complementary
#3340B6 #B66733 #81B633
monochromatic
#181E56 #262F86 #3340B6 #5662D0 #868FDD

Accessibility & contrast

On white

8.24
#3340B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#3340B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340B6
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340B6#FFFFFF#000000##FFFFFF
##3340B61.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3340b6;
/* rgb */ color: rgb(51, 64, 182);
/* oklch */ color: oklch(44.0% 0.185 271.5);
Tailwind
colors: {
  custom: {
    50: '#7d75cd',
    500: '#3340b6',
    950: '#000000',
  },
}
SCSS
$custom: #3340b6;
$custom-light: #7d75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3340b6",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 234.046,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44041,
    "c": 0.18458,
    "h": 271.5
  },
  "luminance": 0.07748
}

Semantic roles & 50–950 ramp

primary
#3340B6
secondary
#C7C07E
accent
#D148E0
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3340B6

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

Preview Lab → · Contrast checker → · Palette generator →

#3340B6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva