#345BA2#345BA2

#345BA2 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.0% C 0.123 H 261.3°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#345BA2
RGBrgb(52, 91, 162)
HSLhsl(219, 51%, 42%)
HSVhsv(219, 68%, 64%)
CMYKcmyk(67.9%, 43.8%, 0%, 36.5%)
CIE-LABlab(39.28, 10.30, -42.54)
CIE-LCHlch(39.28, 43.77, 283.61°)
OKLaboklab(47.98% -0.0185 -0.1215)
OKLCHoklch(47.98% 0.123 261.3)
XYZxyz(11.6765, 10.8197, 35.6485)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345BA2 #A27B34
analogous
#3492A2 #345BA2 #4434A2
triadic
#345BA2 #A2345B #5BA234
tetradic
#345BA2 #A23492 #A27B34 #34A244
square
#345BA2 #A23492 #A27B34 #34A244
split-complementary
#345BA2 #A24434 #92A234
monochromatic
#162745 #254174 #345BA2 #4D78C6 #7C9BD5

Accessibility & contrast

On white

6.64
#345BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#345BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345BA2
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345BA2#FFFFFF#000000##FFFFFF
##345BA21.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #345ba2;
/* rgb */ color: rgb(52, 91, 162);
/* oklch */ color: oklch(48.0% 0.123 261.3);
Tailwind
colors: {
  custom: {
    50: '#7888be',
    500: '#345ba2',
    950: '#000000',
  },
}
SCSS
$custom: #345ba2;
$custom-light: #7888be;
$custom-dark: #000000;
JSON
{
  "hex": "#345ba2",
  "rgb": {
    "r": 52,
    "g": 91,
    "b": 162
  },
  "hsl": {
    "h": 218.727,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47979,
    "c": 0.12289,
    "h": 261.3
  },
  "luminance": 0.10821
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #345BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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