#3340AF#3340AF

#3340AF is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.175 H 271.7°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#3340AF
RGBrgb(51, 64, 175)
HSLhsl(234, 55%, 44%)
HSVhsv(234, 71%, 69%)
CMYKcmyk(70.9%, 63.4%, 0%, 31.4%)
CIE-LABlab(32.84, 32.65, -60.70)
CIE-LCHlch(32.84, 68.92, 298.27°)
OKLaboklab(43.41% 0.0052 -0.1753)
OKLCHoklch(43.41% 0.175 271.7)
XYZxyz(10.9339, 7.4647, 41.4137)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340AF #AFA233
analogous
#337EAF #3340AF #6433AF
triadic
#3340AF #AF3340 #40AF33
tetradic
#3340AF #AF337E #AFA233 #33AF64
square
#3340AF #AF337E #AFA233 #33AF64
split-complementary
#3340AF #AF6433 #7EAF33
monochromatic
#171D50 #252F80 #3340AF #525FCD #828BDB

Accessibility & contrast

On white

8.42
#3340AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#3340AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3340AF#FFFFFF#000000##FFFFFF
##3340AF1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3340af;
/* rgb */ color: rgb(51, 64, 175);
/* oklch */ color: oklch(43.4% 0.175 271.7);
Tailwind
colors: {
  custom: {
    50: '#7c75c8',
    500: '#3340af',
    950: '#000000',
  },
}
SCSS
$custom: #3340af;
$custom-light: #7c75c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3340af",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 233.71,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43408,
    "c": 0.17534,
    "h": 271.7
  },
  "luminance": 0.07466
}

Semantic roles & 50–950 ramp

primary
#3340AF
secondary
#C4BC7A
accent
#CF4ADE
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3340AF

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

Preview Lab → · Contrast checker → · Palette generator →

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