#3340B9#3340B9

#3340B9 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.3% C 0.189 H 271.4°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#3340B9
RGBrgb(51, 64, 185)
HSLhsl(234, 57%, 46%)
HSVhsv(234, 72%, 73%)
CMYKcmyk(72.4%, 65.4%, 0%, 27.5%)
CIE-LABlab(33.72, 36.21, -65.20)
CIE-LCHlch(33.72, 74.58, 299.05°)
OKLaboklab(44.32% 0.0046 -0.1884)
OKLCHoklch(44.32% 0.189 271.4)
XYZxyz(11.9526, 7.8722, 46.7791)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340B9 #B9AC33
analogous
#3383B9 #3340B9 #6933B9
triadic
#3340B9 #B93340 #40B933
tetradic
#3340B9 #B93383 #B9AC33 #33B969
square
#3340B9 #B93383 #B9AC33 #33B969
split-complementary
#3340B9 #B96933 #83B933
monochromatic
#191F59 #262F89 #3340B9 #5864D1 #8891DE

Accessibility & contrast

On white

8.16
#3340B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#3340B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340B9
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340B9#FFFFFF#000000##FFFFFF
##3340B91.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0049B7
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3340b9;
/* rgb */ color: rgb(51, 64, 185);
/* oklch */ color: oklch(44.3% 0.189 271.4);
Tailwind
colors: {
  custom: {
    50: '#7e75cf',
    500: '#3340b9',
    950: '#000000',
  },
}
SCSS
$custom: #3340b9;
$custom-light: #7e75cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3340b9",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 234.179,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44317,
    "c": 0.1885,
    "h": 271.4
  },
  "luminance": 0.07873
}

Semantic roles & 50–950 ramp

primary
#3340B9
secondary
#C8C180
accent
#D148E0
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3340B9

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

Preview Lab → · Contrast checker → · Palette generator →

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