#3340A4#3340A4

#3340A4 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.160 H 272.0°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#3340A4
RGBrgb(51, 64, 164)
HSLhsl(233, 53%, 42%)
HSVhsv(233, 69%, 64%)
CMYKcmyk(68.9%, 61%, 0%, 35.7%)
CIE-LABlab(31.92, 28.68, -55.62)
CIE-LCHlch(31.92, 62.57, 297.28°)
OKLaboklab(42.44% 0.0056 -0.1603)
OKLCHoklch(42.44% 0.16 272)
XYZxyz(9.8972, 7.0500, 35.9540)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340A4 #A49733
analogous
#3379A4 #3340A4 #5E33A4
triadic
#3340A4 #A43340 #40A433
tetradic
#3340A4 #A43379 #A49733 #33A45E
square
#3340A4 #A43379 #A49733 #33A45E
split-complementary
#3340A4 #A45E33 #79A433
monochromatic
#161C47 #242E75 #3340A4 #4D5BC8 #7B86D6

Accessibility & contrast

On white

8.71
#3340A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3340A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3340A4#FFFFFF#000000##FFFFFF
##3340A41.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3340a4;
/* rgb */ color: rgb(51, 64, 164);
/* oklch */ color: oklch(42.4% 0.160 272.0);
Tailwind
colors: {
  custom: {
    50: '#7974c0',
    500: '#3340a4',
    950: '#000000',
  },
}
SCSS
$custom: #3340a4;
$custom-light: #7974c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3340a4",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 233.097,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42441,
    "c": 0.16044,
    "h": 272
  },
  "luminance": 0.07051
}

Semantic roles & 50–950 ramp

primary
#3340A4
secondary
#BFB674
accent
#CB4CDC
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3340A4

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

Preview Lab → · Contrast checker → · Palette generator →

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