#345AD7#345AD7

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

Color values

HEX#345AD7
RGBrgb(52, 90, 215)
HSLhsl(226, 67%, 52%)
HSVhsv(226, 76%, 84%)
CMYKcmyk(75.8%, 58.1%, 0%, 15.7%)
CIE-LABlab(42.68, 30.60, -67.97)
CIE-LCHlch(42.68, 74.54, 294.24°)
OKLaboklab(51.74% -0.0121 -0.1963)
OKLCHoklch(51.74% 0.197 266.5)
XYZxyz(17.3338, 12.9468, 65.8622)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345AD7 #D7B134
analogous
#34ACD7 #345AD7 #5F34D7
triadic
#345AD7 #D7345A #5AD734
tetradic
#345AD7 #D734AC #D7B134 #34D75F
square
#345AD7 #D734AC #D7B134 #34D75F
split-complementary
#345AD7 #D75F34 #ACD734
monochromatic
#182E79 #2242AC #345AD7 #6784E1 #9AADEB

Accessibility & contrast

On white

5.85
#345AD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#345AD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345AD7
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345AD7#FFFFFF#000000##FFFFFF
##345AD71.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#005DD5
Tritanopia (blue-blind)
#007990
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #345ad7;
/* rgb */ color: rgb(52, 90, 215);
/* oklch */ color: oklch(51.7% 0.197 266.5);
Tailwind
colors: {
  custom: {
    50: '#8388e4',
    500: '#345ad7',
    950: '#000000',
  },
}
SCSS
$custom: #345ad7;
$custom-light: #8388e4;
$custom-dark: #000000;
JSON
{
  "hex": "#345ad7",
  "rgb": {
    "r": 52,
    "g": 90,
    "b": 215
  },
  "hsl": {
    "h": 226.012,
    "s": 67.078,
    "l": 52.353
  },
  "oklch": {
    "l": 0.51735,
    "c": 0.19664,
    "h": 266.5
  },
  "luminance": 0.12949
}

Semantic roles & 50–950 ramp

primary
#345AD7
secondary
#D7C690
accent
#C23EEA
background
#F8F8FE
surface
#F0EFFC
border
#CBCAD5
text
#0C0B16
muted
#7D7C84

Preview Lab

Preview with #345AD7

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

Preview Lab → · Contrast checker → · Palette generator →

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