#345BB2#345BB2

#345BB2 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.1% C 0.145 H 263.7°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#345BB2
RGBrgb(52, 91, 178)
HSLhsl(221, 55%, 45%)
HSVhsv(221, 71%, 70%)
CMYKcmyk(70.8%, 48.9%, 0%, 30.2%)
CIE-LABlab(40.29, 16.25, -50.39)
CIE-LCHlch(40.29, 52.94, 287.87°)
OKLaboklab(49.08% -0.0159 -0.1446)
OKLCHoklch(49.08% 0.145 263.7)
XYZxyz(13.1903, 11.4252, 43.6210)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345BB2 #B28B34
analogous
#349AB2 #345BB2 #4C34B2
triadic
#345BB2 #B2345B #5BB234
tetradic
#345BB2 #B2349A #B28B34 #34B24C
square
#345BB2 #B2349A #B28B34 #34B24C
split-complementary
#345BB2 #B24C34 #9AB234
monochromatic
#182B53 #264383 #345BB2 #567BCE #85A0DB

Accessibility & contrast

On white

6.39
#345BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#345BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345BB2
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345BB2#FFFFFF#000000##FFFFFF
##345BB21.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B65B5
Deuteranopia (green-blind)
#045AB0
Tritanopia (blue-blind)
#006F7E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #345bb2;
/* rgb */ color: rgb(52, 91, 178);
/* oklch */ color: oklch(49.1% 0.145 263.7);
Tailwind
colors: {
  custom: {
    50: '#7b88ca',
    500: '#345bb2',
    950: '#000000',
  },
}
SCSS
$custom: #345bb2;
$custom-light: #7b88ca;
$custom-dark: #000000;
JSON
{
  "hex": "#345bb2",
  "rgb": {
    "r": 52,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 221.429,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49082,
    "c": 0.14543,
    "h": 263.7
  },
  "luminance": 0.11427
}

Semantic roles & 50–950 ramp

primary
#345BB2
secondary
#C5AF7D
accent
#B04ADE
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #345BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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