#34518B#34518B

#34518B is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.2% C 0.102 H 262.9°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#34518B
RGBrgb(52, 81, 139)
HSLhsl(220, 46%, 37%)
HSVhsv(220, 63%, 55%)
CMYKcmyk(62.6%, 41.7%, 0%, 45.5%)
CIE-LABlab(34.96, 8.39, -35.55)
CIE-LCHlch(34.96, 36.53, 283.28°)
OKLaboklab(44.2% -0.0127 -0.1011)
OKLCHoklch(44.2% 0.102 262.9)
XYZxyz(9.0172, 8.4782, 25.5824)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34518B #8B6E34
analogous
#347D8B #34518B #42348B
triadic
#34518B #8B3451 #518B34
tetradic
#34518B #8B347D #8B6E34 #348B42
square
#34518B #8B347D #8B6E34 #348B42
split-complementary
#34518B #8B4234 #7D8B34
monochromatic
#131D32 #23375E #34518B #456BB8 #708EC9

Accessibility & contrast

On white

7.79
#34518B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#34518B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34518B
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34518B#FFFFFF#000000##FFFFFF
##34518B1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38578D
Deuteranopia (green-blind)
#2B4F8A
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #34518b;
/* rgb */ color: rgb(52, 81, 139);
/* oklch */ color: oklch(44.2% 0.102 262.9);
Tailwind
colors: {
  custom: {
    50: '#7481ad',
    500: '#34518b',
    950: '#000000',
  },
}
SCSS
$custom: #34518b;
$custom-light: #7481ad;
$custom-dark: #000000;
JSON
{
  "hex": "#34518b",
  "rgb": {
    "r": 52,
    "g": 81,
    "b": 139
  },
  "hsl": {
    "h": 220,
    "s": 45.55,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44202,
    "c": 0.1019,
    "h": 262.9
  },
  "luminance": 0.08479
}

Semantic roles & 50–950 ramp

primary
#34518B
secondary
#B29969
accent
#AA53D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #34518B

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

Preview Lab → · Contrast checker → · Palette generator →

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