#34518D#34518D

#34518D is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.3% C 0.105 H 263.3°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#34518D
RGBrgb(52, 81, 141)
HSLhsl(220, 46%, 38%)
HSVhsv(220, 63%, 55%)
CMYKcmyk(63.1%, 42.6%, 0%, 44.7%)
CIE-LABlab(35.08, 9.12, -36.58)
CIE-LCHlch(35.08, 37.70, 283.99°)
OKLaboklab(44.33% -0.0122 -0.1041)
OKLCHoklch(44.33% 0.105 263.3)
XYZxyz(9.1647, 8.5372, 26.3590)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34518D #8D7034
analogous
#347E8D #34518D #43348D
triadic
#34518D #8D3451 #518D34
tetradic
#34518D #8D347E #8D7034 #348D43
square
#34518D #8D347E #8D7034 #348D43
split-complementary
#34518D #8D4334 #7E8D34
monochromatic
#131E34 #243760 #34518D #446BBA #718ECB

Accessibility & contrast

On white

7.76
#34518D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#34518D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34518D
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34518D#FFFFFF#000000##FFFFFF
##34518D1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36578F
Deuteranopia (green-blind)
#2A4F8C
Tritanopia (blue-blind)
#005F68
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #34518d;
/* rgb */ color: rgb(52, 81, 141);
/* oklch */ color: oklch(44.3% 0.105 263.3);
Tailwind
colors: {
  custom: {
    50: '#7481af',
    500: '#34518d',
    950: '#000000',
  },
}
SCSS
$custom: #34518d;
$custom-light: #7481af;
$custom-dark: #000000;
JSON
{
  "hex": "#34518d",
  "rgb": {
    "r": 52,
    "g": 81,
    "b": 141
  },
  "hsl": {
    "h": 220.449,
    "s": 46.114,
    "l": 37.843
  },
  "oklch": {
    "l": 0.44332,
    "c": 0.10486,
    "h": 263.3
  },
  "luminance": 0.08538
}

Semantic roles & 50–950 ramp

primary
#34518D
secondary
#B39B6A
accent
#AB52D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #34518D

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

Preview Lab → · Contrast checker → · Palette generator →

#34518D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva