#345AA2#345AA2

#345AA2 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.8% C 0.124 H 261.9°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#345AA2
RGBrgb(52, 90, 162)
HSLhsl(219, 51%, 42%)
HSVhsv(219, 68%, 64%)
CMYKcmyk(67.9%, 44.4%, 0%, 36.5%)
CIE-LABlab(38.98, 10.95, -43.01)
CIE-LCHlch(38.98, 44.38, 284.29°)
OKLaboklab(47.76% -0.0175 -0.1229)
OKLCHoklch(47.76% 0.124 261.9)
XYZxyz(11.5916, 10.6499, 35.6202)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345AA2 #A27C34
analogous
#3491A2 #345AA2 #4534A2
triadic
#345AA2 #A2345A #5AA234
tetradic
#345AA2 #A23491 #A27C34 #34A245
square
#345AA2 #A23491 #A27C34 #34A245
split-complementary
#345AA2 #A24534 #91A234
monochromatic
#162745 #254074 #345AA2 #4D77C6 #7C9AD5

Accessibility & contrast

On white

6.71
#345AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#345AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345AA2
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345AA2#FFFFFF#000000##FFFFFF
##345AA21.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A5
Deuteranopia (green-blind)
#2557A1
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #345aa2;
/* rgb */ color: rgb(52, 90, 162);
/* oklch */ color: oklch(47.8% 0.124 261.9);
Tailwind
colors: {
  custom: {
    50: '#7888be',
    500: '#345aa2',
    950: '#000000',
  },
}
SCSS
$custom: #345aa2;
$custom-light: #7888be;
$custom-dark: #000000;
JSON
{
  "hex": "#345aa2",
  "rgb": {
    "r": 52,
    "g": 90,
    "b": 162
  },
  "hsl": {
    "h": 219.273,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47755,
    "c": 0.12411,
    "h": 261.9
  },
  "luminance": 0.10651
}

Semantic roles & 50–950 ramp

primary
#345AA2
secondary
#BEA474
accent
#AA4DDB
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #345AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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