#345FBA#345FBA

#345FBA is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.5% C 0.152 H 263.1°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#345FBA
RGBrgb(52, 95, 186)
HSLhsl(221, 56%, 47%)
HSVhsv(221, 72%, 73%)
CMYKcmyk(72%, 48.9%, 0%, 27.1%)
CIE-LABlab(41.94, 16.63, -52.42)
CIE-LCHlch(41.94, 55.00, 287.60°)
OKLaboklab(50.51% -0.0183 -0.1505)
OKLCHoklch(50.51% 0.152 263.1)
XYZxyz(14.3682, 12.4581, 48.0923)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345FBA #BA8F34
analogous
#34A2BA #345FBA #4C34BA
triadic
#345FBA #BA345F #5FBA34
tetradic
#345FBA #BA34A2 #BA8F34 #34BA4C
square
#345FBA #BA34A2 #BA8F34 #34BA4C
split-complementary
#345FBA #BA4C34 #A2BA34
monochromatic
#192E5A #27478A #345FBA #5A80D1 #8AA5DE

Accessibility & contrast

On white

6.01
#345FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#345FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345FBA
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345FBA#FFFFFF#000000##FFFFFF
##345FBA1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C69BD
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#007583
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #345fba;
/* rgb */ color: rgb(52, 95, 186);
/* oklch */ color: oklch(50.5% 0.152 263.1);
Tailwind
colors: {
  custom: {
    50: '#7c8bcf',
    500: '#345fba',
    950: '#000000',
  },
}
SCSS
$custom: #345fba;
$custom-light: #7c8bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#345fba",
  "rgb": {
    "r": 52,
    "g": 95,
    "b": 186
  },
  "hsl": {
    "h": 220.746,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50511,
    "c": 0.15159,
    "h": 263.1
  },
  "luminance": 0.1246
}

Semantic roles & 50–950 ramp

primary
#345FBA
secondary
#C8B281
accent
#AF48E0
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #345FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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