#345EC6#345EC6

#345EC6 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.2% C 0.169 H 264.6°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#345EC6
RGBrgb(52, 94, 198)
HSLhsl(223, 58%, 49%)
HSVhsv(223, 74%, 78%)
CMYKcmyk(73.7%, 52.5%, 0%, 22.4%)
CIE-LABlab(42.48, 21.75, -58.52)
CIE-LCHlch(42.48, 62.43, 290.39°)
OKLaboklab(51.18% -0.0161 -0.1684)
OKLCHoklch(51.18% 0.169 264.6)
XYZxyz(15.6083, 12.8110, 55.0653)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345EC6 #C69C34
analogous
#34A7C6 #345EC6 #5334C6
triadic
#345EC6 #C6345E #5EC634
tetradic
#345EC6 #C634A7 #C69C34 #34C653
square
#345EC6 #C634A7 #C69C34 #34C653
split-complementary
#345EC6 #C65334 #A7C634
monochromatic
#1B3065 #274796 #345EC6 #6283D6 #92A9E2

Accessibility & contrast

On white

5.89
#345EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#345EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345EC6
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345EC6#FFFFFF#000000##FFFFFF
##345EC61.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#156BCA
Deuteranopia (green-blind)
#005EC4
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #345ec6;
/* rgb */ color: rgb(52, 94, 198);
/* oklch */ color: oklch(51.2% 0.169 264.6);
Tailwind
colors: {
  custom: {
    50: '#7f8bd8',
    500: '#345ec6',
    950: '#000000',
  },
}
SCSS
$custom: #345ec6;
$custom-light: #7f8bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#345ec6",
  "rgb": {
    "r": 52,
    "g": 94,
    "b": 198
  },
  "hsl": {
    "h": 222.74,
    "s": 58.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51184,
    "c": 0.1692,
    "h": 264.6
  },
  "luminance": 0.12813
}

Semantic roles & 50–950 ramp

primary
#345EC6
secondary
#CDBA89
accent
#B546E2
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #345EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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