#34517C#34517C

#34517C is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.3% C 0.080 H 258.1°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#34517C
RGBrgb(52, 81, 124)
HSLhsl(216, 41%, 35%)
HSVhsv(216, 58%, 49%)
CMYKcmyk(58.1%, 34.7%, 0%, 51.4%)
CIE-LABlab(34.13, 3.02, -27.64)
CIE-LCHlch(34.13, 27.81, 276.22°)
OKLaboklab(43.29% -0.0165 -0.078)
OKLCHoklch(43.29% 0.08 258.1)
XYZxyz(7.9954, 8.0695, 20.2011)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34517C #7C5F34
analogous
#34757C #34517C #3B347C
triadic
#34517C #7C3451 #517C34
tetradic
#34517C #7C3475 #7C5F34 #347C3B
square
#34517C #7C3475 #7C5F34 #347C3B
split-complementary
#34517C #7C3B34 #757C34
monochromatic
#101926 #223551 #34517C #466DA7 #6A8DC0

Accessibility & contrast

On white

8.03
#34517C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#34517C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34517C
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34517C#FFFFFF#000000##FFFFFF
##34517C1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40547E
Deuteranopia (green-blind)
#364D7B
Tritanopia (blue-blind)
#035B61
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #34517c;
/* rgb */ color: rgb(52, 81, 124);
/* oklch */ color: oklch(43.3% 0.080 258.1);
Tailwind
colors: {
  custom: {
    50: '#7181a2',
    500: '#34517c',
    950: '#000000',
  },
}
SCSS
$custom: #34517c;
$custom-light: #7181a2;
$custom-dark: #000000;
JSON
{
  "hex": "#34517c",
  "rgb": {
    "r": 52,
    "g": 81,
    "b": 124
  },
  "hsl": {
    "h": 215.833,
    "s": 40.909,
    "l": 34.51
  },
  "oklch": {
    "l": 0.43285,
    "c": 0.07973,
    "h": 258.1
  },
  "luminance": 0.0807
}

Semantic roles & 50–950 ramp

primary
#34517C
secondary
#A98D63
accent
#A057D1
background
#F7F7FA
surface
#EDEEF3
border
#C8C9CD
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #34517C

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

Preview Lab → · Contrast checker → · Palette generator →

#34517C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva