#345EA7#345EA7

#345EA7 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.0% C 0.126 H 260.6°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#345EA7
RGBrgb(52, 94, 167)
HSLhsl(218, 53%, 43%)
HSVhsv(218, 69%, 65%)
CMYKcmyk(68.9%, 43.7%, 0%, 34.5%)
CIE-LABlab(40.45, 10.21, -43.64)
CIE-LCHlch(40.45, 44.82, 283.17°)
OKLaboklab(48.98% -0.0205 -0.1246)
OKLCHoklch(48.98% 0.126 260.6)
XYZxyz(12.3914, 11.5242, 38.1231)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345EA7 #A77D34
analogous
#3497A7 #345EA7 #4434A7
triadic
#345EA7 #A7345E #5EA734
tetradic
#345EA7 #A73497 #A77D34 #34A744
square
#345EA7 #A73497 #A77D34 #34A744
split-complementary
#345EA7 #A74434 #97A734
monochromatic
#17294A #254478 #345EA7 #507CC8 #7E9FD7

Accessibility & contrast

On white

6.35
#345EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#345EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345EA7
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345EA7#FFFFFF#000000##FFFFFF
##345EA71.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B65AA
Deuteranopia (green-blind)
#285AA6
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #345ea7;
/* rgb */ color: rgb(52, 94, 167);
/* oklch */ color: oklch(49.0% 0.126 260.6);
Tailwind
colors: {
  custom: {
    50: '#798bc1',
    500: '#345ea7',
    950: '#000000',
  },
}
SCSS
$custom: #345ea7;
$custom-light: #798bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#345ea7",
  "rgb": {
    "r": 52,
    "g": 94,
    "b": 167
  },
  "hsl": {
    "h": 218.087,
    "s": 52.511,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48983,
    "c": 0.12633,
    "h": 260.6
  },
  "luminance": 0.11525
}

Semantic roles & 50–950 ramp

primary
#345EA7
secondary
#C0A577
accent
#A74CDC
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #345EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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