#345FA8#345FA8

#345FA8 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.3% C 0.127 H 260.3°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#345FA8
RGBrgb(52, 95, 168)
HSLhsl(218, 53%, 43%)
HSVhsv(218, 69%, 66%)
CMYKcmyk(69%, 43.5%, 0%, 34.1%)
CIE-LABlab(40.80, 9.94, -43.67)
CIE-LCHlch(40.80, 44.78, 282.82°)
OKLaboklab(49.27% -0.0213 -0.1247)
OKLCHoklch(49.27% 0.127 260.3)
XYZxyz(12.5737, 11.7404, 38.6417)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345FA8 #A87D34
analogous
#3499A8 #345FA8 #4334A8
triadic
#345FA8 #A8345F #5FA834
tetradic
#345FA8 #A83499 #A87D34 #34A843
square
#345FA8 #A83499 #A87D34 #34A843
split-complementary
#345FA8 #A84334 #99A834
monochromatic
#172A4B #264579 #345FA8 #507DC9 #7FA0D7

Accessibility & contrast

On white

6.27
#345FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#345FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345FA8
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345FA8#FFFFFF#000000##FFFFFF
##345FA81.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C66AB
Deuteranopia (green-blind)
#295BA7
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #345fa8;
/* rgb */ color: rgb(52, 95, 168);
/* oklch */ color: oklch(49.3% 0.127 260.3);
Tailwind
colors: {
  custom: {
    50: '#798bc2',
    500: '#345fa8',
    950: '#000000',
  },
}
SCSS
$custom: #345fa8;
$custom-light: #798bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#345fa8",
  "rgb": {
    "r": 52,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 217.759,
    "s": 52.727,
    "l": 43.137
  },
  "oklch": {
    "l": 0.49274,
    "c": 0.12654,
    "h": 260.3
  },
  "luminance": 0.11742
}

Semantic roles & 50–950 ramp

primary
#345FA8
secondary
#C0A577
accent
#A74CDC
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #345FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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