#345F9D#345F9D

#345F9D is a mid, moderate blue. Relative luminance 0.113; OKLCH L 48.6% C 0.111 H 257.7°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#345F9D
RGBrgb(52, 95, 157)
HSLhsl(215, 50%, 41%)
HSVhsv(215, 67%, 62%)
CMYKcmyk(66.9%, 39.5%, 0%, 38.4%)
CIE-LABlab(40.16, 5.89, -38.15)
CIE-LCHlch(40.16, 38.60, 278.77°)
OKLaboklab(48.57% -0.0237 -0.1085)
OKLCHoklch(48.57% 0.111 257.7)
XYZxyz(11.5920, 11.3477, 33.4712)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345F9D #9D7234
analogous
#34939D #345F9D #3E349D
triadic
#345F9D #9D345F #5F9D34
tetradic
#345F9D #9D3493 #9D7234 #349D3E
square
#345F9D #9D3493 #9D7234 #349D3E
split-complementary
#345F9D #9D3E34 #939D34
monochromatic
#162741 #25436F #345F9D #4B7CC3 #799ED3

Accessibility & contrast

On white

6.42
#345F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#345F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #345F9D
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345F9D#FFFFFF#000000##FFFFFF
##345F9D1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43649F
Deuteranopia (green-blind)
#345A9C
Tritanopia (blue-blind)
#006D76
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #345f9d;
/* rgb */ color: rgb(52, 95, 157);
/* oklch */ color: oklch(48.6% 0.111 257.7);
Tailwind
colors: {
  custom: {
    50: '#778cba',
    500: '#345f9d',
    950: '#000000',
  },
}
SCSS
$custom: #345f9d;
$custom-light: #778cba;
$custom-dark: #000000;
JSON
{
  "hex": "#345f9d",
  "rgb": {
    "r": 52,
    "g": 95,
    "b": 157
  },
  "hsl": {
    "h": 215.429,
    "s": 50.239,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48569,
    "c": 0.11111,
    "h": 257.7
  },
  "luminance": 0.11349
}

Semantic roles & 50–950 ramp

primary
#345F9D
secondary
#BB9D72
accent
#A14EDA
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090C11
muted
#7B7D80

Preview Lab

Preview with #345F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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