#3340B3#3340B3

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

Color values

HEX#3340B3
RGBrgb(51, 64, 179)
HSLhsl(234, 56%, 45%)
HSVhsv(234, 72%, 70%)
CMYKcmyk(71.5%, 64.2%, 0%, 29.8%)
CIE-LABlab(33.19, 34.08, -62.51)
CIE-LCHlch(33.19, 71.20, 298.60°)
OKLaboklab(43.77% 0.005 -0.1806)
OKLCHoklch(43.77% 0.181 271.6)
XYZxyz(11.3326, 7.6241, 43.5135)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340B3 #B3A633
analogous
#3380B3 #3340B3 #6633B3
triadic
#3340B3 #B33340 #40B333
tetradic
#3340B3 #B33380 #B3A633 #33B366
square
#3340B3 #B33380 #B3A633 #33B366
split-complementary
#3340B3 #B36633 #80B333
monochromatic
#181E54 #252F83 #3340B3 #5561CE #848DDC

Accessibility & contrast

On white

8.32
#3340B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3340B3
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340B3#FFFFFF#000000##FFFFFF
##3340B31.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3340b3;
/* rgb */ color: rgb(51, 64, 179);
/* oklch */ color: oklch(43.8% 0.181 271.6);
Tailwind
colors: {
  custom: {
    50: '#7d75cb',
    500: '#3340b3',
    950: '#000000',
  },
}
SCSS
$custom: #3340b3;
$custom-light: #7d75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3340b3",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 233.906,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43768,
    "c": 0.18064,
    "h": 271.6
  },
  "luminance": 0.07625
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3340B3

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

Preview Lab → · Contrast checker → · Palette generator →

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