#345FAF#345FAF

#345FAF is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.7% C 0.136 H 261.6°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#345FAF
RGBrgb(52, 95, 175)
HSLhsl(219, 54%, 45%)
HSVhsv(219, 70%, 69%)
CMYKcmyk(70.3%, 45.7%, 0%, 31.4%)
CIE-LABlab(41.23, 12.54, -47.11)
CIE-LCHlch(41.23, 48.75, 284.90°)
OKLaboklab(49.74% -0.02 -0.1348)
OKLCHoklch(49.74% 0.136 261.6)
XYZxyz(13.2435, 12.0083, 42.1690)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345FAF #AF8434
analogous
#349DAF #345FAF #4634AF
triadic
#345FAF #AF345F #5FAF34
tetradic
#345FAF #AF349D #AF8434 #34AF46
square
#345FAF #AF349D #AF8434 #34AF46
split-complementary
#345FAF #AF4634 #9DAF34
monochromatic
#182C51 #264580 #345FAF #547ECC #83A2DA

Accessibility & contrast

On white

6.17
#345FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#345FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345FAF
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345FAF#FFFFFF#000000##FFFFFF
##345FAF1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3767B2
Deuteranopia (green-blind)
#1F5CAD
Tritanopia (blue-blind)
#00727E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #345faf;
/* rgb */ color: rgb(52, 95, 175);
/* oklch */ color: oklch(49.7% 0.136 261.6);
Tailwind
colors: {
  custom: {
    50: '#7a8bc7',
    500: '#345faf',
    950: '#000000',
  },
}
SCSS
$custom: #345faf;
$custom-light: #7a8bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#345faf",
  "rgb": {
    "r": 52,
    "g": 95,
    "b": 175
  },
  "hsl": {
    "h": 219.024,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49743,
    "c": 0.13633,
    "h": 261.6
  },
  "luminance": 0.1201
}

Semantic roles & 50–950 ramp

primary
#345FAF
secondary
#C4AA7B
accent
#AA4ADE
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #345FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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