#3340AA#3340AA

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

Color values

HEX#3340AA
RGBrgb(51, 64, 170)
HSLhsl(233, 54%, 43%)
HSVhsv(233, 70%, 67%)
CMYKcmyk(70%, 62.4%, 0%, 33.3%)
CIE-LABlab(32.42, 30.85, -58.40)
CIE-LCHlch(32.42, 66.05, 297.84°)
OKLaboklab(42.96% 0.0054 -0.1685)
OKLCHoklch(42.96% 0.169 271.8)
XYZxyz(10.4519, 7.2719, 38.8752)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340AA #AA9D33
analogous
#337BAA #3340AA #6133AA
triadic
#3340AA #AA3340 #40AA33
tetradic
#3340AA #AA337B #AA9D33 #33AA61
square
#3340AA #AA337B #AA9D33 #33AA61
split-complementary
#3340AA #AA6133 #7BAA33
monochromatic
#171D4C #252E7B #3340AA #505DCA #7F89D9

Accessibility & contrast

On white

8.56
#3340AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3340AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3340AA#FFFFFF#000000##FFFFFF
##3340AA1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3340aa;
/* rgb */ color: rgb(51, 64, 170);
/* oklch */ color: oklch(43.0% 0.169 271.8);
Tailwind
colors: {
  custom: {
    50: '#7b74c4',
    500: '#3340aa',
    950: '#000000',
  },
}
SCSS
$custom: #3340aa;
$custom-light: #7b74c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3340aa",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 233.445,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42964,
    "c": 0.16862,
    "h": 271.8
  },
  "luminance": 0.07273
}

Semantic roles & 50–950 ramp

primary
#3340AA
secondary
#C2B977
accent
#CD4BDD
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3340AA

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

Preview Lab → · Contrast checker → · Palette generator →

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