#345197#345197

#345197 is a mid, moderate blue. Relative luminance 0.088; OKLCH L 45.0% C 0.120 H 265.0°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#345197
RGBrgb(52, 81, 151)
HSLhsl(222, 49%, 40%)
HSVhsv(222, 66%, 59%)
CMYKcmyk(65.6%, 46.4%, 0%, 40.8%)
CIE-LABlab(35.69, 12.79, -41.68)
CIE-LCHlch(35.69, 43.59, 287.05°)
OKLaboklab(45% -0.0103 -0.1191)
OKLCHoklch(45% 0.12 265)
XYZxyz(9.9426, 8.8484, 30.4561)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345197 #977A34
analogous
#348397 #345197 #493497
triadic
#345197 #973451 #519734
tetradic
#345197 #973483 #977A34 #349749
square
#345197 #973483 #977A34 #349749
split-complementary
#345197 #974934 #839734
monochromatic
#15203C #243969 #345197 #486BC0 #7690D0

Accessibility & contrast

On white

7.58
#345197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#345197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #345197
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345197#FFFFFF#000000##FFFFFF
##3451971.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F599A
Deuteranopia (green-blind)
#1E5096
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #345197;
/* rgb */ color: rgb(52, 81, 151);
/* oklch */ color: oklch(45.0% 0.120 265.0);
Tailwind
colors: {
  custom: {
    50: '#7681b6',
    500: '#345197',
    950: '#000000',
  },
}
SCSS
$custom: #345197;
$custom-light: #7681b6;
$custom-dark: #000000;
JSON
{
  "hex": "#345197",
  "rgb": {
    "r": 52,
    "g": 81,
    "b": 151
  },
  "hsl": {
    "h": 222.424,
    "s": 48.768,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45002,
    "c": 0.11954,
    "h": 265
  },
  "luminance": 0.08849
}

Semantic roles & 50–950 ramp

primary
#345197
secondary
#B8A36F
accent
#B04FD8
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #345197

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

Preview Lab → · Contrast checker → · Palette generator →

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