#345AC4#345AC4

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

Color values

HEX#345AC4
RGBrgb(52, 90, 196)
HSLhsl(224, 58%, 49%)
HSVhsv(224, 73%, 77%)
CMYKcmyk(73.5%, 54.1%, 0%, 23.1%)
CIE-LABlab(41.26, 23.60, -59.34)
CIE-LCHlch(41.26, 63.86, 291.69°)
OKLaboklab(50.22% -0.0131 -0.1709)
OKLCHoklch(50.22% 0.171 265.6)
XYZxyz(15.0326, 12.0263, 53.7429)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345AC4 #C49E34
analogous
#34A2C4 #345AC4 #5634C4
triadic
#345AC4 #C4345A #5AC434
tetradic
#345AC4 #C434A2 #C49E34 #34C456
square
#345AC4 #C434A2 #C49E34 #34C456
split-complementary
#345AC4 #C45634 #A2C434
monochromatic
#1A2E63 #274494 #345AC4 #607FD5 #91A6E2

Accessibility & contrast

On white

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

On black

3.41
#345AC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##345AC4#FFFFFF#000000##FFFFFF
##345AC41.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C8
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#007486
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #345ac4;
/* rgb */ color: rgb(52, 90, 196);
/* oklch */ color: oklch(50.2% 0.171 265.6);
Tailwind
colors: {
  custom: {
    50: '#7f88d7',
    500: '#345ac4',
    950: '#000000',
  },
}
SCSS
$custom: #345ac4;
$custom-light: #7f88d7;
$custom-dark: #000000;
JSON
{
  "hex": "#345ac4",
  "rgb": {
    "r": 52,
    "g": 90,
    "b": 196
  },
  "hsl": {
    "h": 224.167,
    "s": 58.065,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50216,
    "c": 0.17141,
    "h": 265.6
  },
  "luminance": 0.12028
}

Semantic roles & 50–950 ramp

primary
#345AC4
secondary
#CCBA87
accent
#B847E1
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #345AC4

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

Preview Lab → · Contrast checker → · Palette generator →

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