#345EA2#345EA2

#345EA2 is a mid, moderate blue. Relative luminance 0.113; OKLCH L 48.7% C 0.119 H 259.6°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#345EA2
RGBrgb(52, 94, 162)
HSLhsl(217, 51%, 42%)
HSVhsv(217, 68%, 64%)
CMYKcmyk(67.9%, 42%, 0%, 36.5%)
CIE-LABlab(40.15, 8.37, -41.14)
CIE-LCHlch(40.15, 41.98, 281.49°)
OKLaboklab(48.66% -0.0216 -0.1173)
OKLCHoklch(48.66% 0.119 259.6)
XYZxyz(11.9381, 11.3429, 35.7357)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345EA2 #A27834
analogous
#3495A2 #345EA2 #4134A2
triadic
#345EA2 #A2345E #5EA234
tetradic
#345EA2 #A23495 #A27834 #34A241
square
#345EA2 #A23495 #A27834 #34A241
split-complementary
#345EA2 #A24134 #95A234
monochromatic
#162845 #254374 #345EA2 #4D7BC6 #7C9ED5

Accessibility & contrast

On white

6.42
#345EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#345EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345EA2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345EA2#FFFFFF#000000##FFFFFF
##345EA21.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F64A5
Deuteranopia (green-blind)
#2D5AA1
Tritanopia (blue-blind)
#006E78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #345ea2;
/* rgb */ color: rgb(52, 94, 162);
/* oklch */ color: oklch(48.7% 0.119 259.6);
Tailwind
colors: {
  custom: {
    50: '#788bbe',
    500: '#345ea2',
    950: '#000000',
  },
}
SCSS
$custom: #345ea2;
$custom-light: #788bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#345ea2",
  "rgb": {
    "r": 52,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 217.091,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48657,
    "c": 0.11929,
    "h": 259.6
  },
  "luminance": 0.11344
}

Semantic roles & 50–950 ramp

primary
#345EA2
secondary
#BEA274
accent
#A54DDB
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #345EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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