#3340AD#3340AD

#3340AD is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.173 H 271.8°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#3340AD
RGBrgb(51, 64, 173)
HSLhsl(234, 54%, 44%)
HSVhsv(234, 71%, 68%)
CMYKcmyk(70.5%, 63%, 0%, 32.2%)
CIE-LABlab(32.67, 31.93, -59.78)
CIE-LCHlch(32.67, 67.78, 298.10°)
OKLaboklab(43.23% 0.0053 -0.1726)
OKLCHoklch(43.23% 0.173 271.8)
XYZxyz(10.7389, 7.3867, 40.3869)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340AD #ADA033
analogous
#337DAD #3340AD #6333AD
triadic
#3340AD #AD3340 #40AD33
tetradic
#3340AD #AD337D #ADA033 #33AD63
square
#3340AD #AD337D #ADA033 #33AD63
split-complementary
#3340AD #AD6333 #7DAD33
monochromatic
#171D4E #252F7E #3340AD #515ECC #818ADA

Accessibility & contrast

On white

8.48
#3340AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#3340AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340AD
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340AD#FFFFFF#000000##FFFFFF
##3340AD1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B1
Deuteranopia (green-blind)
#0047AB
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3340ad;
/* rgb */ color: rgb(51, 64, 173);
/* oklch */ color: oklch(43.2% 0.173 271.8);
Tailwind
colors: {
  custom: {
    50: '#7b75c6',
    500: '#3340ad',
    950: '#000000',
  },
}
SCSS
$custom: #3340ad;
$custom-light: #7b75c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3340ad",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 233.607,
    "s": 54.464,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43229,
    "c": 0.17266,
    "h": 271.8
  },
  "luminance": 0.07388
}

Semantic roles & 50–950 ramp

primary
#3340AD
secondary
#C3BB79
accent
#CE4ADE
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3340AD

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

Preview Lab → · Contrast checker → · Palette generator →

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