#3340B8#3340B8

#3340B8 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.2% C 0.187 H 271.4°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#3340B8
RGBrgb(51, 64, 184)
HSLhsl(234, 57%, 46%)
HSVhsv(234, 72%, 72%)
CMYKcmyk(72.3%, 65.2%, 0%, 27.8%)
CIE-LABlab(33.63, 35.86, -64.75)
CIE-LCHlch(33.63, 74.02, 298.98°)
OKLaboklab(44.22% 0.0047 -0.1871)
OKLCHoklch(44.22% 0.187 271.4)
XYZxyz(11.8474, 7.8301, 46.2251)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340B8 #B8AB33
analogous
#3382B8 #3340B8 #6833B8
triadic
#3340B8 #B83340 #40B833
tetradic
#3340B8 #B83382 #B8AB33 #33B868
square
#3340B8 #B83382 #B8AB33 #33B868
split-complementary
#3340B8 #B86833 #82B833
monochromatic
#181F58 #262F88 #3340B8 #5863D1 #8890DE

Accessibility & contrast

On white

8.18
#3340B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3340B8
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340B8#FFFFFF#000000##FFFFFF
##3340B81.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3340b8;
/* rgb */ color: rgb(51, 64, 184);
/* oklch */ color: oklch(44.2% 0.187 271.4);
Tailwind
colors: {
  custom: {
    50: '#7e75ce',
    500: '#3340b8',
    950: '#000000',
  },
}
SCSS
$custom: #3340b8;
$custom-light: #7e75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3340b8",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 234.135,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44225,
    "c": 0.1872,
    "h": 271.4
  },
  "luminance": 0.07831
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3340B8

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

Preview Lab → · Contrast checker → · Palette generator →

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