#345198#345198

#345198 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.1% C 0.121 H 265.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#345198
RGBrgb(52, 81, 152)
HSLhsl(223, 49%, 40%)
HSVhsv(223, 66%, 60%)
CMYKcmyk(65.8%, 46.7%, 0%, 40.4%)
CIE-LABlab(35.75, 13.15, -42.18)
CIE-LCHlch(35.75, 44.18, 287.32°)
OKLaboklab(45.07% -0.0102 -0.1206)
OKLCHoklch(45.07% 0.121 265.2)
XYZxyz(10.0241, 8.8810, 30.8856)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345198 #987B34
analogous
#348398 #345198 #493498
triadic
#345198 #983451 #519834
tetradic
#345198 #983483 #987B34 #349849
square
#345198 #983483 #987B34 #349849
split-complementary
#345198 #984934 #839834
monochromatic
#15203D #24396A #345198 #496BC1 #7690D0

Accessibility & contrast

On white

7.56
#345198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#345198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #345198
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345198#FFFFFF#000000##FFFFFF
##3451981.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E599B
Deuteranopia (green-blind)
#1C5097
Tritanopia (blue-blind)
#00616D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #345198;
/* rgb */ color: rgb(52, 81, 152);
/* oklch */ color: oklch(45.1% 0.121 265.2);
Tailwind
colors: {
  custom: {
    50: '#7681b7',
    500: '#345198',
    950: '#000000',
  },
}
SCSS
$custom: #345198;
$custom-light: #7681b7;
$custom-dark: #000000;
JSON
{
  "hex": "#345198",
  "rgb": {
    "r": 52,
    "g": 81,
    "b": 152
  },
  "hsl": {
    "h": 222.6,
    "s": 49.02,
    "l": 40
  },
  "oklch": {
    "l": 0.45071,
    "c": 0.121,
    "h": 265.2
  },
  "luminance": 0.08882
}

Semantic roles & 50–950 ramp

primary
#345198
secondary
#B9A36F
accent
#B14FD9
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #345198

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

Preview Lab → · Contrast checker → · Palette generator →

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