#345BC2#345BC2

#345BC2 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.3% C 0.167 H 265.2°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#345BC2
RGBrgb(52, 91, 194)
HSLhsl(224, 58%, 48%)
HSVhsv(224, 73%, 76%)
CMYKcmyk(73.2%, 53.1%, 0%, 23.9%)
CIE-LABlab(41.38, 22.20, -57.97)
CIE-LCHlch(41.38, 62.08, 290.96°)
OKLaboklab(50.27% -0.014 -0.1669)
OKLCHoklch(50.27% 0.167 265.2)
XYZxyz(14.8914, 12.1057, 52.5803)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345BC2 #C29B34
analogous
#34A2C2 #345BC2 #5434C2
triadic
#345BC2 #C2345B #5BC234
tetradic
#345BC2 #C234A2 #C29B34 #34C254
square
#345BC2 #C234A2 #C29B34 #34C254
split-complementary
#345BC2 #C25434 #A2C234
monochromatic
#1A2E61 #274492 #345BC2 #5F7FD4 #8FA6E1

Accessibility & contrast

On white

6.14
#345BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#345BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345BC2
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345BC2#FFFFFF#000000##FFFFFF
##345BC21.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F68C6
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#007485
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #345bc2;
/* rgb */ color: rgb(52, 91, 194);
/* oklch */ color: oklch(50.3% 0.167 265.2);
Tailwind
colors: {
  custom: {
    50: '#7e88d5',
    500: '#345bc2',
    950: '#000000',
  },
}
SCSS
$custom: #345bc2;
$custom-light: #7e88d5;
$custom-dark: #000000;
JSON
{
  "hex": "#345bc2",
  "rgb": {
    "r": 52,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 223.521,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50266,
    "c": 0.16747,
    "h": 265.2
  },
  "luminance": 0.12107
}

Semantic roles & 50–950 ramp

primary
#345BC2
secondary
#CCB986
accent
#B747E1
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #345BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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