#345AC1#345AC1

#345AC1 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.0% C 0.167 H 265.4°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#345AC1
RGBrgb(52, 90, 193)
HSLhsl(224, 58%, 48%)
HSVhsv(224, 73%, 76%)
CMYKcmyk(73.1%, 53.4%, 0%, 24.3%)
CIE-LABlab(41.04, 22.48, -57.94)
CIE-LCHlch(41.04, 62.15, 291.21°)
OKLaboklab(49.99% -0.0133 -0.1668)
OKLCHoklch(49.99% 0.167 265.4)
XYZxyz(14.6946, 11.8911, 51.9625)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345AC1 #C19B34
analogous
#34A0C1 #345AC1 #5534C1
triadic
#345AC1 #C1345A #5AC134
tetradic
#345AC1 #C134A0 #C19B34 #34C155
square
#345AC1 #C134A0 #C19B34 #34C155
split-complementary
#345AC1 #C15534 #A0C134
monochromatic
#1A2D61 #274491 #345AC1 #5E7ED4 #8FA5E1

Accessibility & contrast

On white

6.22
#345AC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#345AC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345AC1
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345AC1#FFFFFF#000000##FFFFFF
##345AC11.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C68C5
Deuteranopia (green-blind)
#005BBF
Tritanopia (blue-blind)
#007385
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #345ac1;
/* rgb */ color: rgb(52, 90, 193);
/* oklch */ color: oklch(50.0% 0.167 265.4);
Tailwind
colors: {
  custom: {
    50: '#7e88d4',
    500: '#345ac1',
    950: '#000000',
  },
}
SCSS
$custom: #345ac1;
$custom-light: #7e88d4;
$custom-dark: #000000;
JSON
{
  "hex": "#345ac1",
  "rgb": {
    "r": 52,
    "g": 90,
    "b": 193
  },
  "hsl": {
    "h": 223.83,
    "s": 57.551,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49985,
    "c": 0.16734,
    "h": 265.4
  },
  "luminance": 0.11893
}

Semantic roles & 50–950 ramp

primary
#345AC1
secondary
#CBB886
accent
#B747E1
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #345AC1

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

Preview Lab → · Contrast checker → · Palette generator →

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