#345791#345791

#345791 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 46.0% C 0.103 H 260.0°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#345791
RGBrgb(52, 87, 145)
HSLhsl(217, 47%, 39%)
HSVhsv(217, 64%, 57%)
CMYKcmyk(64.1%, 40%, 0%, 43.1%)
CIE-LABlab(37.10, 6.66, -35.80)
CIE-LCHlch(37.10, 36.42, 280.53°)
OKLaboklab(45.97% -0.018 -0.1018)
OKLCHoklch(45.97% 0.103 260)
XYZxyz(9.9334, 9.5899, 28.1101)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345791 #916E34
analogous
#348591 #345791 #3F3491
triadic
#345791 #913457 #579134
tetradic
#345791 #913485 #916E34 #34913F
square
#345791 #913485 #916E34 #34913F
split-complementary
#345791 #913F34 #859134
monochromatic
#142137 #243C64 #345791 #4672BD #7395CD

Accessibility & contrast

On white

7.20
#345791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#345791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #345791
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345791#FFFFFF#000000##FFFFFF
##3457911.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5C93
Deuteranopia (green-blind)
#305390
Tritanopia (blue-blind)
#00646D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #345791;
/* rgb */ color: rgb(52, 87, 145);
/* oklch */ color: oklch(46.0% 0.103 260.0);
Tailwind
colors: {
  custom: {
    50: '#7586b1',
    500: '#345791',
    950: '#000000',
  },
}
SCSS
$custom: #345791;
$custom-light: #7586b1;
$custom-dark: #000000;
JSON
{
  "hex": "#345791",
  "rgb": {
    "r": 52,
    "g": 87,
    "b": 145
  },
  "hsl": {
    "h": 217.419,
    "s": 47.208,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45969,
    "c": 0.10336,
    "h": 260
  },
  "luminance": 0.09591
}

Semantic roles & 50–950 ramp

primary
#345791
secondary
#B5996C
accent
#A451D7
background
#F7F8FA
surface
#EDEFF5
border
#C8CACF
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #345791

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

Preview Lab → · Contrast checker → · Palette generator →

#345791 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva