#345FB8#345FB8

#345FB8 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.4% C 0.149 H 262.8°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#345FB8
RGBrgb(52, 95, 184)
HSLhsl(220, 56%, 46%)
HSVhsv(220, 72%, 72%)
CMYKcmyk(71.7%, 48.4%, 0%, 27.8%)
CIE-LABlab(41.80, 15.89, -51.47)
CIE-LCHlch(41.80, 53.86, 287.15°)
OKLaboklab(50.37% -0.0186 -0.1477)
OKLCHoklch(50.37% 0.149 262.8)
XYZxyz(14.1570, 12.3737, 46.9804)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345FB8 #B88D34
analogous
#34A1B8 #345FB8 #4B34B8
triadic
#345FB8 #B8345F #5FB834
tetradic
#345FB8 #B834A1 #B88D34 #34B84B
square
#345FB8 #B834A1 #B88D34 #34B84B
split-complementary
#345FB8 #B84B34 #A1B834
monochromatic
#192E59 #274688 #345FB8 #5980D0 #89A4DE

Accessibility & contrast

On white

6.04
#345FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#345FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345FB8
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345FB8#FFFFFF#000000##FFFFFF
##345FB81.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E69BB
Deuteranopia (green-blind)
#065DB6
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #345fb8;
/* rgb */ color: rgb(52, 95, 184);
/* oklch */ color: oklch(50.4% 0.149 262.8);
Tailwind
colors: {
  custom: {
    50: '#7c8bce',
    500: '#345fb8',
    950: '#000000',
  },
}
SCSS
$custom: #345fb8;
$custom-light: #7c8bce;
$custom-dark: #000000;
JSON
{
  "hex": "#345fb8",
  "rgb": {
    "r": 52,
    "g": 95,
    "b": 184
  },
  "hsl": {
    "h": 220.455,
    "s": 55.932,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50368,
    "c": 0.14883,
    "h": 262.8
  },
  "luminance": 0.12375
}

Semantic roles & 50–950 ramp

primary
#345FB8
secondary
#C8B080
accent
#AE49DF
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #345FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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