#345EC1#345EC1

#345EC1 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.8% C 0.162 H 264.1°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#345EC1
RGBrgb(52, 94, 193)
HSLhsl(222, 58%, 48%)
HSVhsv(222, 73%, 76%)
CMYKcmyk(73.1%, 51.3%, 0%, 24.3%)
CIE-LABlab(42.13, 19.89, -56.19)
CIE-LCHlch(42.13, 59.60, 289.49°)
OKLaboklab(50.81% -0.0166 -0.1616)
OKLCHoklch(50.81% 0.162 264.1)
XYZxyz(15.0411, 12.5841, 52.0780)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345EC1 #C19734
analogous
#34A4C1 #345EC1 #5134C1
triadic
#345EC1 #C1345E #5EC134
tetradic
#345EC1 #C134A4 #C19734 #34C151
square
#345EC1 #C134A4 #C19734 #34C151
split-complementary
#345EC1 #C15134 #A4C134
monochromatic
#1A2F61 #274791 #345EC1 #5E81D4 #8FA7E1

Accessibility & contrast

On white

5.97
#345EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#345EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345EC1
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345EC1#FFFFFF#000000##FFFFFF
##345EC11.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6AC5
Deuteranopia (green-blind)
#005DBF
Tritanopia (blue-blind)
#007686
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #345ec1;
/* rgb */ color: rgb(52, 94, 193);
/* oklch */ color: oklch(50.8% 0.162 264.1);
Tailwind
colors: {
  custom: {
    50: '#7e8bd4',
    500: '#345ec1',
    950: '#000000',
  },
}
SCSS
$custom: #345ec1;
$custom-light: #7e8bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#345ec1",
  "rgb": {
    "r": 52,
    "g": 94,
    "b": 193
  },
  "hsl": {
    "h": 222.128,
    "s": 57.551,
    "l": 48.039
  },
  "oklch": {
    "l": 0.5081,
    "c": 0.16242,
    "h": 264.1
  },
  "luminance": 0.12586
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #345EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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