#3340A2#3340A2

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

Color values

HEX#3340A2
RGBrgb(51, 64, 162)
HSLhsl(233, 52%, 42%)
HSVhsv(233, 69%, 64%)
CMYKcmyk(68.5%, 60.5%, 0%, 36.5%)
CIE-LABlab(31.76, 27.95, -54.68)
CIE-LCHlch(31.76, 61.41, 297.08°)
OKLaboklab(42.27% 0.0056 -0.1576)
OKLCHoklch(42.27% 0.158 272)
XYZxyz(9.7180, 6.9783, 35.0102)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340A2 #A29533
analogous
#3378A2 #3340A2 #5E33A2
triadic
#3340A2 #A23340 #40A233
tetradic
#3340A2 #A23378 #A29533 #33A25E
square
#3340A2 #A23378 #A29533 #33A25E
split-complementary
#3340A2 #A25E33 #78A233
monochromatic
#161B45 #242E73 #3340A2 #4C5AC7 #7A85D5

Accessibility & contrast

On white

8.77
#3340A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##3340A2#FFFFFF#000000##FFFFFF
##3340A21.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3340a2;
/* rgb */ color: rgb(51, 64, 162);
/* oklch */ color: oklch(42.3% 0.158 272.0);
Tailwind
colors: {
  custom: {
    50: '#7974be',
    500: '#3340a2',
    950: '#000000',
  },
}
SCSS
$custom: #3340a2;
$custom-light: #7974be;
$custom-dark: #000000;
JSON
{
  "hex": "#3340a2",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 232.973,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4227,
    "c": 0.15769,
    "h": 272
  },
  "luminance": 0.06979
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3340A2

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

Preview Lab → · Contrast checker → · Palette generator →

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