#345FA4#345FA4

#345FA4 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.0% C 0.121 H 259.5°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#345FA4
RGBrgb(52, 95, 164)
HSLhsl(217, 52%, 42%)
HSVhsv(217, 68%, 64%)
CMYKcmyk(68.3%, 42.1%, 0%, 35.7%)
CIE-LABlab(40.56, 8.46, -41.68)
CIE-LCHlch(40.56, 42.53, 281.48°)
OKLaboklab(49.01% -0.0221 -0.1189)
OKLCHoklch(49.01% 0.121 259.5)
XYZxyz(12.2068, 11.5936, 36.7092)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345FA4 #A47934
analogous
#3497A4 #345FA4 #4134A4
triadic
#345FA4 #A4345F #5FA434
tetradic
#345FA4 #A43497 #A47934 #34A441
square
#345FA4 #A43497 #A47934 #34A441
split-complementary
#345FA4 #A44134 #97A434
monochromatic
#172947 #254476 #345FA4 #4E7DC7 #7D9FD6

Accessibility & contrast

On white

6.33
#345FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#345FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345FA4
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345FA4#FFFFFF#000000##FFFFFF
##345FA41.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F65A7
Deuteranopia (green-blind)
#2D5BA3
Tritanopia (blue-blind)
#006F79
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #345fa4;
/* rgb */ color: rgb(52, 95, 164);
/* oklch */ color: oklch(49.0% 0.121 259.5);
Tailwind
colors: {
  custom: {
    50: '#788bbf',
    500: '#345fa4',
    950: '#000000',
  },
}
SCSS
$custom: #345fa4;
$custom-light: #788bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#345fa4",
  "rgb": {
    "r": 52,
    "g": 95,
    "b": 164
  },
  "hsl": {
    "h": 216.964,
    "s": 51.852,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49013,
    "c": 0.12092,
    "h": 259.5
  },
  "luminance": 0.11595
}

Semantic roles & 50–950 ramp

primary
#345FA4
secondary
#BFA275
accent
#A44CDB
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #345FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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