#3340B7#3340B7

#3340B7 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.186 H 271.5°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#3340B7
RGBrgb(51, 64, 183)
HSLhsl(234, 56%, 46%)
HSVhsv(234, 72%, 72%)
CMYKcmyk(72.1%, 65%, 0%, 28.2%)
CIE-LABlab(33.54, 35.50, -64.31)
CIE-LCHlch(33.54, 73.46, 298.90°)
OKLaboklab(44.13% 0.0048 -0.1858)
OKLCHoklch(44.13% 0.186 271.5)
XYZxyz(11.7430, 7.7883, 45.6750)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340B7 #B7AA33
analogous
#3382B7 #3340B7 #6833B7
triadic
#3340B7 #B73340 #40B733
tetradic
#3340B7 #B73382 #B7AA33 #33B768
square
#3340B7 #B73382 #B7AA33 #33B768
split-complementary
#3340B7 #B76833 #82B733
monochromatic
#181F57 #262F87 #3340B7 #5763D0 #878FDE

Accessibility & contrast

On white

8.21
#3340B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3340B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340B7
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340B7#FFFFFF#000000##FFFFFF
##3340B71.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3340b7;
/* rgb */ color: rgb(51, 64, 183);
/* oklch */ color: oklch(44.1% 0.186 271.5);
Tailwind
colors: {
  custom: {
    50: '#7d75ce',
    500: '#3340b7',
    950: '#000000',
  },
}
SCSS
$custom: #3340b7;
$custom-light: #7d75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3340b7",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 234.091,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44133,
    "c": 0.18589,
    "h": 271.5
  },
  "luminance": 0.07789
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3340B7

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

Preview Lab → · Contrast checker → · Palette generator →

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