#3340B4#3340B4

#3340B4 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.182 H 271.6°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#3340B4
RGBrgb(51, 64, 180)
HSLhsl(234, 56%, 45%)
HSVhsv(234, 72%, 71%)
CMYKcmyk(71.7%, 64.4%, 0%, 29.4%)
CIE-LABlab(33.27, 34.44, -62.96)
CIE-LCHlch(33.27, 71.76, 298.68°)
OKLaboklab(43.86% 0.005 -0.1819)
OKLCHoklch(43.86% 0.182 271.6)
XYZxyz(11.4341, 7.6647, 44.0480)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340B4 #B4A733
analogous
#3381B4 #3340B4 #6633B4
triadic
#3340B4 #B43340 #40B433
tetradic
#3340B4 #B43381 #B4A733 #33B466
square
#3340B4 #B43381 #B4A733 #33B466
split-complementary
#3340B4 #B46633 #81B433
monochromatic
#181E55 #252F84 #3340B4 #5562CF #858EDC

Accessibility & contrast

On white

8.29
#3340B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#3340B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340B4
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340B4#FFFFFF#000000##FFFFFF
##3340B41.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0048B2
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3340b4;
/* rgb */ color: rgb(51, 64, 180);
/* oklch */ color: oklch(43.9% 0.182 271.6);
Tailwind
colors: {
  custom: {
    50: '#7d75cb',
    500: '#3340b4',
    950: '#000000',
  },
}
SCSS
$custom: #3340b4;
$custom-light: #7d75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3340b4",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 233.953,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43859,
    "c": 0.18196,
    "h": 271.6
  },
  "luminance": 0.07666
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3340B4

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

Preview Lab → · Contrast checker → · Palette generator →

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