#345AA4#345AA4

#345AA4 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.9% C 0.127 H 262.2°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#345AA4
RGBrgb(52, 90, 164)
HSLhsl(220, 52%, 42%)
HSVhsv(220, 68%, 64%)
CMYKcmyk(68.3%, 45.1%, 0%, 35.7%)
CIE-LABlab(39.11, 11.69, -44.00)
CIE-LCHlch(39.11, 45.53, 284.88°)
OKLaboklab(47.89% -0.0172 -0.1258)
OKLCHoklch(47.89% 0.127 262.2)
XYZxyz(11.7708, 10.7216, 36.5639)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345AA4 #A47E34
analogous
#3492A4 #345AA4 #4634A4
triadic
#345AA4 #A4345A #5AA434
tetradic
#345AA4 #A43492 #A47E34 #34A446
square
#345AA4 #A43492 #A47E34 #34A446
split-complementary
#345AA4 #A44634 #92A434
monochromatic
#172747 #254076 #345AA4 #4E77C7 #7D9BD6

Accessibility & contrast

On white

6.68
#345AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#345AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345AA4
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345AA4#FFFFFF#000000##FFFFFF
##345AA41.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3662A7
Deuteranopia (green-blind)
#2257A2
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #345aa4;
/* rgb */ color: rgb(52, 90, 164);
/* oklch */ color: oklch(47.9% 0.127 262.2);
Tailwind
colors: {
  custom: {
    50: '#7888bf',
    500: '#345aa4',
    950: '#000000',
  },
}
SCSS
$custom: #345aa4;
$custom-light: #7888bf;
$custom-dark: #000000;
JSON
{
  "hex": "#345aa4",
  "rgb": {
    "r": 52,
    "g": 90,
    "b": 164
  },
  "hsl": {
    "h": 219.643,
    "s": 51.852,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47889,
    "c": 0.12696,
    "h": 262.2
  },
  "luminance": 0.10723
}

Semantic roles & 50–950 ramp

primary
#345AA4
secondary
#BFA675
accent
#AB4CDB
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #345AA4

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

Preview Lab → · Contrast checker → · Palette generator →

#345AA4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva