#3340A3#3340A3

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

Color values

HEX#3340A3
RGBrgb(51, 64, 163)
HSLhsl(233, 52%, 42%)
HSVhsv(233, 69%, 64%)
CMYKcmyk(68.7%, 60.7%, 0%, 36.1%)
CIE-LABlab(31.84, 28.32, -55.15)
CIE-LCHlch(31.84, 61.99, 297.18°)
OKLaboklab(42.36% 0.0056 -0.159)
OKLCHoklch(42.36% 0.159 272)
XYZxyz(9.8073, 7.0140, 35.4802)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340A3 #A39633
analogous
#3378A3 #3340A3 #5E33A3
triadic
#3340A3 #A33340 #40A333
tetradic
#3340A3 #A33378 #A39633 #33A35E
square
#3340A3 #A33378 #A39633 #33A35E
split-complementary
#3340A3 #A35E33 #78A333
monochromatic
#161B46 #242E74 #3340A3 #4C5AC7 #7B85D6

Accessibility & contrast

On white

8.74
#3340A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#3340A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3340A3#FFFFFF#000000##FFFFFF
##3340A31.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3340a3;
/* rgb */ color: rgb(51, 64, 163);
/* oklch */ color: oklch(42.4% 0.159 272.0);
Tailwind
colors: {
  custom: {
    50: '#7974bf',
    500: '#3340a3',
    950: '#000000',
  },
}
SCSS
$custom: #3340a3;
$custom-light: #7974bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3340a3",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 233.036,
    "s": 52.336,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42355,
    "c": 0.15907,
    "h": 272
  },
  "luminance": 0.07015
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3340A3

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

Preview Lab → · Contrast checker → · Palette generator →

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