#345AD6#345AD6

#345AD6 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.7% C 0.195 H 266.4°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#345AD6
RGBrgb(52, 90, 214)
HSLhsl(226, 66%, 52%)
HSVhsv(226, 76%, 84%)
CMYKcmyk(75.7%, 57.9%, 0%, 16.1%)
CIE-LABlab(42.61, 30.24, -67.52)
CIE-LCHlch(42.61, 73.98, 294.12°)
OKLaboklab(51.65% -0.0121 -0.195)
OKLCHoklch(51.65% 0.195 266.4)
XYZxyz(17.2057, 12.8955, 65.1876)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345AD6 #D6B034
analogous
#34ABD6 #345AD6 #5F34D6
triadic
#345AD6 #D6345A #5AD634
tetradic
#345AD6 #D634AB #D6B034 #34D65F
square
#345AD6 #D634AB #D6B034 #34D65F
split-complementary
#345AD6 #D65F34 #ABD634
monochromatic
#182E77 #2242AA #345AD6 #6783E0 #9AADEB

Accessibility & contrast

On white

5.87
#345AD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#345AD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345AD6
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345AD6#FFFFFF#000000##FFFFFF
##345AD61.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDA
Deuteranopia (green-blind)
#005DD4
Tritanopia (blue-blind)
#00798F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #345ad6;
/* rgb */ color: rgb(52, 90, 214);
/* oklch */ color: oklch(51.7% 0.195 266.4);
Tailwind
colors: {
  custom: {
    50: '#8388e4',
    500: '#345ad6',
    950: '#000000',
  },
}
SCSS
$custom: #345ad6;
$custom-light: #8388e4;
$custom-dark: #000000;
JSON
{
  "hex": "#345ad6",
  "rgb": {
    "r": 52,
    "g": 90,
    "b": 214
  },
  "hsl": {
    "h": 225.926,
    "s": 66.393,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51652,
    "c": 0.19534,
    "h": 266.4
  },
  "luminance": 0.12897
}

Semantic roles & 50–950 ramp

primary
#345AD6
secondary
#D6C690
accent
#C13EE9
background
#F8F8FE
surface
#F0EFFC
border
#CBCAD5
text
#0C0B16
muted
#7D7C84

Preview Lab

Preview with #345AD6

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

Preview Lab → · Contrast checker → · Palette generator →

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