#345EA4#345EA4

#345EA4 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.8% C 0.122 H 260.0°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#345EA4
RGBrgb(52, 94, 164)
HSLhsl(218, 52%, 42%)
HSVhsv(218, 68%, 64%)
CMYKcmyk(68.3%, 42.7%, 0%, 35.7%)
CIE-LABlab(40.27, 9.10, -42.14)
CIE-LCHlch(40.27, 43.12, 282.19°)
OKLaboklab(48.79% -0.0211 -0.1203)
OKLCHoklch(48.79% 0.122 260)
XYZxyz(12.1173, 11.4146, 36.6794)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345EA4 #A47A34
analogous
#3496A4 #345EA4 #4234A4
triadic
#345EA4 #A4345E #5EA434
tetradic
#345EA4 #A43496 #A47A34 #34A442
square
#345EA4 #A43496 #A47A34 #34A442
split-complementary
#345EA4 #A44234 #96A434
monochromatic
#172947 #254376 #345EA4 #4E7CC7 #7D9ED6

Accessibility & contrast

On white

6.40
#345EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#345EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345EA4
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345EA4#FFFFFF#000000##FFFFFF
##345EA41.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D64A7
Deuteranopia (green-blind)
#2B5AA3
Tritanopia (blue-blind)
#006E79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #345ea4;
/* rgb */ color: rgb(52, 94, 164);
/* oklch */ color: oklch(48.8% 0.122 260.0);
Tailwind
colors: {
  custom: {
    50: '#788bbf',
    500: '#345ea4',
    950: '#000000',
  },
}
SCSS
$custom: #345ea4;
$custom-light: #788bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#345ea4",
  "rgb": {
    "r": 52,
    "g": 94,
    "b": 164
  },
  "hsl": {
    "h": 217.5,
    "s": 51.852,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48786,
    "c": 0.12211,
    "h": 260
  },
  "luminance": 0.11416
}

Semantic roles & 50–950 ramp

primary
#345EA4
secondary
#BFA375
accent
#A64CDB
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #345EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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