#3340B2#3340B2

#3340B2 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.7% C 0.179 H 271.6°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#3340B2
RGBrgb(51, 64, 178)
HSLhsl(234, 55%, 45%)
HSVhsv(234, 71%, 70%)
CMYKcmyk(71.3%, 64%, 0%, 30.2%)
CIE-LABlab(33.10, 33.72, -62.06)
CIE-LCHlch(33.10, 70.63, 298.52°)
OKLaboklab(43.68% 0.0051 -0.1792)
OKLCHoklch(43.68% 0.179 271.6)
XYZxyz(11.2318, 7.5838, 42.9827)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340B2 #B2A533
analogous
#3380B2 #3340B2 #6533B2
triadic
#3340B2 #B23340 #40B233
tetradic
#3340B2 #B23380 #B2A533 #33B265
square
#3340B2 #B23380 #B2A533 #33B265
split-complementary
#3340B2 #B26533 #80B233
monochromatic
#181E53 #252F82 #3340B2 #5461CE #848DDC

Accessibility & contrast

On white

8.34
#3340B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#3340B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340B2
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340B2#FFFFFF#000000##FFFFFF
##3340B21.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3340b2;
/* rgb */ color: rgb(51, 64, 178);
/* oklch */ color: oklch(43.7% 0.179 271.6);
Tailwind
colors: {
  custom: {
    50: '#7c75ca',
    500: '#3340b2',
    950: '#000000',
  },
}
SCSS
$custom: #3340b2;
$custom-light: #7c75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3340b2",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 233.858,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43678,
    "c": 0.17932,
    "h": 271.6
  },
  "luminance": 0.07585
}

Semantic roles & 50–950 ramp

primary
#3340B2
secondary
#C5BE7C
accent
#CF49DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3340B2

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

Preview Lab → · Contrast checker → · Palette generator →

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