#345172#345172

#345172 is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.7% C 0.065 H 252.5°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#345172
RGBrgb(52, 81, 114)
HSLhsl(212, 37%, 33%)
HSVhsv(212, 54%, 45%)
CMYKcmyk(54.4%, 28.9%, 0%, 55.3%)
CIE-LABlab(33.62, -0.45, -22.21)
CIE-LCHlch(33.62, 22.22, 268.84°)
OKLaboklab(42.73% -0.0196 -0.0623)
OKLCHoklch(42.73% 0.065 252.5)
XYZxyz(7.3948, 7.8293, 17.0378)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345172 #725534
analogous
#347072 #345172 #363472
triadic
#345172 #723451 #517234
tetradic
#345172 #723470 #725534 #347236
square
#345172 #723470 #725534 #347236
split-complementary
#345172 #723634 #707234
monochromatic
#0E151E #213348 #345172 #476F9C #678EBA

Accessibility & contrast

On white

8.18
#345172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#345172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #345172
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345172#FFFFFF#000000##FFFFFF
##3451721.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445273
Deuteranopia (green-blind)
#3C4C71
Tritanopia (blue-blind)
#13585C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #345172;
/* rgb */ color: rgb(52, 81, 114);
/* oklch */ color: oklch(42.7% 0.065 252.5);
Tailwind
colors: {
  custom: {
    50: '#70819a',
    500: '#345172',
    950: '#000000',
  },
}
SCSS
$custom: #345172;
$custom-light: #70819a;
$custom-dark: #000000;
JSON
{
  "hex": "#345172",
  "rgb": {
    "r": 52,
    "g": 81,
    "b": 114
  },
  "hsl": {
    "h": 211.935,
    "s": 37.349,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42726,
    "c": 0.06529,
    "h": 252.5
  },
  "luminance": 0.0783
}

Semantic roles & 50–950 ramp

primary
#345172
secondary
#A28360
accent
#985ACD
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #345172

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

Preview Lab → · Contrast checker → · Palette generator →

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