#3340AC#3340AC

#3340AC is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.171 H 271.8°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#3340AC
RGBrgb(51, 64, 172)
HSLhsl(234, 54%, 44%)
HSVhsv(234, 70%, 67%)
CMYKcmyk(70.3%, 62.8%, 0%, 32.5%)
CIE-LABlab(32.59, 31.57, -59.33)
CIE-LCHlch(32.59, 67.20, 298.02°)
OKLaboklab(43.14% 0.0053 -0.1712)
OKLCHoklch(43.14% 0.171 271.8)
XYZxyz(10.6425, 7.3481, 39.8792)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340AC #AC9F33
analogous
#337CAC #3340AC #6233AC
triadic
#3340AC #AC3340 #40AC33
tetradic
#3340AC #AC337C #AC9F33 #33AC62
square
#3340AC #AC337C #AC9F33 #33AC62
split-complementary
#3340AC #AC6233 #7CAC33
monochromatic
#171D4E #252E7D #3340AC #515ECB #808AD9

Accessibility & contrast

On white

8.50
#3340AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#3340AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340AC
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340AC#FFFFFF#000000##FFFFFF
##3340AC1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#0047AA
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3340ac;
/* rgb */ color: rgb(51, 64, 172);
/* oklch */ color: oklch(43.1% 0.171 271.8);
Tailwind
colors: {
  custom: {
    50: '#7b75c6',
    500: '#3340ac',
    950: '#000000',
  },
}
SCSS
$custom: #3340ac;
$custom-light: #7b75c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3340ac",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 233.554,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43141,
    "c": 0.17131,
    "h": 271.8
  },
  "luminance": 0.07349
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3340AC

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

Preview Lab → · Contrast checker → · Palette generator →

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