#3340B5#3340B5

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

Color values

HEX#3340B5
RGBrgb(51, 64, 181)
HSLhsl(234, 56%, 45%)
HSVhsv(234, 72%, 71%)
CMYKcmyk(71.8%, 64.6%, 0%, 29%)
CIE-LABlab(33.36, 34.79, -63.41)
CIE-LCHlch(33.36, 72.33, 298.75°)
OKLaboklab(43.95% 0.0049 -0.1832)
OKLCHoklch(43.95% 0.183 271.5)
XYZxyz(11.5363, 7.7056, 44.5865)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340B5 #B5A833
analogous
#3381B5 #3340B5 #6733B5
triadic
#3340B5 #B53340 #40B533
tetradic
#3340B5 #B53381 #B5A833 #33B567
square
#3340B5 #B53381 #B5A833 #33B567
split-complementary
#3340B5 #B56733 #81B533
monochromatic
#181E56 #262F85 #3340B5 #5662CF #868EDD

Accessibility & contrast

On white

8.26
#3340B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3340B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340B5
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340B5#FFFFFF#000000##FFFFFF
##3340B51.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0048B3
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3340b5;
/* rgb */ color: rgb(51, 64, 181);
/* oklch */ color: oklch(44.0% 0.183 271.5);
Tailwind
colors: {
  custom: {
    50: '#7d75cc',
    500: '#3340b5',
    950: '#000000',
  },
}
SCSS
$custom: #3340b5;
$custom-light: #7d75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3340b5",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 234,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4395,
    "c": 0.18328,
    "h": 271.5
  },
  "luminance": 0.07707
}

Semantic roles & 50–950 ramp

primary
#3340B5
secondary
#C6BF7D
accent
#D048DF
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3340B5

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

Preview Lab → · Contrast checker → · Palette generator →

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