#345BA1#345BA1

#345BA1 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 47.9% C 0.121 H 261.1°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#345BA1
RGBrgb(52, 91, 161)
HSLhsl(219, 51%, 42%)
HSVhsv(219, 68%, 63%)
CMYKcmyk(67.7%, 43.5%, 0%, 36.9%)
CIE-LABlab(39.21, 9.93, -42.04)
CIE-LCHlch(39.21, 43.20, 283.29°)
OKLaboklab(47.91% -0.0187 -0.12)
OKLCHoklch(47.91% 0.121 261.1)
XYZxyz(11.5880, 10.7843, 35.1822)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345BA1 #A17A34
analogous
#3492A1 #345BA1 #4434A1
triadic
#345BA1 #A1345B #5BA134
tetradic
#345BA1 #A13492 #A17A34 #34A144
square
#345BA1 #A13492 #A17A34 #34A144
split-complementary
#345BA1 #A14434 #92A134
monochromatic
#162744 #254173 #345BA1 #4D78C5 #7B9BD4

Accessibility & contrast

On white

6.65
#345BA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #345BA1
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345BA1#FFFFFF#000000##FFFFFF
##345BA11.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A62A4
Deuteranopia (green-blind)
#2858A0
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #345ba1;
/* rgb */ color: rgb(52, 91, 161);
/* oklch */ color: oklch(47.9% 0.121 261.1);
Tailwind
colors: {
  custom: {
    50: '#7888bd',
    500: '#345ba1',
    950: '#000000',
  },
}
SCSS
$custom: #345ba1;
$custom-light: #7888bd;
$custom-dark: #000000;
JSON
{
  "hex": "#345ba1",
  "rgb": {
    "r": 52,
    "g": 91,
    "b": 161
  },
  "hsl": {
    "h": 218.532,
    "s": 51.174,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47913,
    "c": 0.12147,
    "h": 261.1
  },
  "luminance": 0.10785
}

Semantic roles & 50–950 ramp

primary
#345BA1
secondary
#BDA374
accent
#A84DDB
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #345BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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