#345EC2#345EC2

#345EC2 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.9% C 0.164 H 264.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#345EC2
RGBrgb(52, 94, 194)
HSLhsl(222, 58%, 48%)
HSVhsv(222, 73%, 76%)
CMYKcmyk(73.2%, 51.5%, 0%, 23.9%)
CIE-LABlab(42.20, 20.26, -56.65)
CIE-LCHlch(42.20, 60.17, 289.68°)
OKLaboklab(50.88% -0.0165 -0.163)
OKLCHoklch(50.88% 0.164 264.2)
XYZxyz(15.1530, 12.6289, 52.6675)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345EC2 #C29834
analogous
#34A5C2 #345EC2 #5134C2
triadic
#345EC2 #C2345E #5EC234
tetradic
#345EC2 #C234A5 #C29834 #34C251
square
#345EC2 #C234A5 #C29834 #34C251
split-complementary
#345EC2 #C25134 #A5C234
monochromatic
#1A2F61 #274792 #345EC2 #5F82D4 #8FA8E1

Accessibility & contrast

On white

5.96
#345EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#345EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345EC2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345EC2#FFFFFF#000000##FFFFFF
##345EC21.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6AC6
Deuteranopia (green-blind)
#005DC0
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #345ec2;
/* rgb */ color: rgb(52, 94, 194);
/* oklch */ color: oklch(50.9% 0.164 264.2);
Tailwind
colors: {
  custom: {
    50: '#7e8bd5',
    500: '#345ec2',
    950: '#000000',
  },
}
SCSS
$custom: #345ec2;
$custom-light: #7e8bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#345ec2",
  "rgb": {
    "r": 52,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 222.254,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50884,
    "c": 0.16378,
    "h": 264.2
  },
  "luminance": 0.12631
}

Semantic roles & 50–950 ramp

primary
#345EC2
secondary
#CCB786
accent
#B347E1
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #345EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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