#345FA2#345FA2

#345FA2 is a mid, moderate blue. Relative luminance 0.115; OKLCH L 48.9% C 0.118 H 259.0°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#345FA2
RGBrgb(52, 95, 162)
HSLhsl(217, 51%, 42%)
HSVhsv(217, 68%, 64%)
CMYKcmyk(67.9%, 41.4%, 0%, 36.5%)
CIE-LABlab(40.45, 7.72, -40.67)
CIE-LCHlch(40.45, 41.40, 280.75°)
OKLaboklab(48.88% -0.0226 -0.1159)
OKLCHoklch(48.88% 0.118 259)
XYZxyz(12.0276, 11.5219, 35.7655)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345FA2 #A27734
analogous
#3496A2 #345FA2 #4034A2
triadic
#345FA2 #A2345F #5FA234
tetradic
#345FA2 #A23496 #A27734 #34A240
square
#345FA2 #A23496 #A27734 #34A240
split-complementary
#345FA2 #A24034 #96A234
monochromatic
#162945 #254474 #345FA2 #4D7CC6 #7C9ED5

Accessibility & contrast

On white

6.35
#345FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#345FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345FA2
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345FA2#FFFFFF#000000##FFFFFF
##345FA21.006.353.306.35
#FFFFFF6.351.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4065A5
Deuteranopia (green-blind)
#2F5BA1
Tritanopia (blue-blind)
#006E78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #345fa2;
/* rgb */ color: rgb(52, 95, 162);
/* oklch */ color: oklch(48.9% 0.118 259.0);
Tailwind
colors: {
  custom: {
    50: '#788cbe',
    500: '#345fa2',
    950: '#000000',
  },
}
SCSS
$custom: #345fa2;
$custom-light: #788cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#345fa2",
  "rgb": {
    "r": 52,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 216.545,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48884,
    "c": 0.11812,
    "h": 259
  },
  "luminance": 0.11523
}

Semantic roles & 50–950 ramp

primary
#345FA2
secondary
#BEA174
accent
#A34DDB
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #345FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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