#345FC2#345FC2

#345FC2 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.1% C 0.163 H 263.9°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#345FC2
RGBrgb(52, 95, 194)
HSLhsl(222, 58%, 48%)
HSVhsv(222, 73%, 76%)
CMYKcmyk(73.2%, 51%, 0%, 23.9%)
CIE-LABlab(42.47, 19.61, -56.21)
CIE-LCHlch(42.47, 59.54, 289.24°)
OKLaboklab(51.09% -0.0173 -0.1616)
OKLCHoklch(51.09% 0.163 263.9)
XYZxyz(15.2425, 12.8079, 52.6973)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345FC2 #C29734
analogous
#34A6C2 #345FC2 #5034C2
triadic
#345FC2 #C2345F #5FC234
tetradic
#345FC2 #C234A6 #C29734 #34C250
square
#345FC2 #C234A6 #C29734 #34C250
split-complementary
#345FC2 #C25034 #A6C234
monochromatic
#1A3061 #274792 #345FC2 #5F83D4 #8FA8E1

Accessibility & contrast

On white

5.90
#345FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #345FC2
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345FC2#FFFFFF#000000##FFFFFF
##345FC21.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216BC6
Deuteranopia (green-blind)
#005EC0
Tritanopia (blue-blind)
#007787
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #345fc2;
/* rgb */ color: rgb(52, 95, 194);
/* oklch */ color: oklch(51.1% 0.163 263.9);
Tailwind
colors: {
  custom: {
    50: '#7e8bd5',
    500: '#345fc2',
    950: '#000000',
  },
}
SCSS
$custom: #345fc2;
$custom-light: #7e8bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#345fc2",
  "rgb": {
    "r": 52,
    "g": 95,
    "b": 194
  },
  "hsl": {
    "h": 221.831,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51092,
    "c": 0.16255,
    "h": 263.9
  },
  "luminance": 0.1281
}

Semantic roles & 50–950 ramp

primary
#345FC2
secondary
#CCB786
accent
#B247E1
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #345FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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