#34518E#34518E

#34518E is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.4% C 0.106 H 263.5°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#34518E
RGBrgb(52, 81, 142)
HSLhsl(221, 46%, 38%)
HSVhsv(221, 63%, 56%)
CMYKcmyk(63.4%, 43%, 0%, 44.3%)
CIE-LABlab(35.14, 9.48, -37.10)
CIE-LCHlch(35.14, 38.29, 284.34°)
OKLaboklab(44.4% -0.012 -0.1056)
OKLCHoklch(44.4% 0.106 263.5)
XYZxyz(9.2394, 8.5671, 26.7527)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34518E #8E7134
analogous
#347E8E #34518E #44348E
triadic
#34518E #8E3451 #518E34
tetradic
#34518E #8E347E #8E7134 #348E44
square
#34518E #8E347E #8E7134 #348E44
split-complementary
#34518E #8E4434 #7E8E34
monochromatic
#131E34 #243761 #34518E #446BBB #718ECB

Accessibility & contrast

On white

7.74
#34518E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34518E
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34518E#FFFFFF#000000##FFFFFF
##34518E1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365790
Deuteranopia (green-blind)
#294F8D
Tritanopia (blue-blind)
#005F68
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #34518e;
/* rgb */ color: rgb(52, 81, 142);
/* oklch */ color: oklch(44.4% 0.106 263.5);
Tailwind
colors: {
  custom: {
    50: '#7481af',
    500: '#34518e',
    950: '#000000',
  },
}
SCSS
$custom: #34518e;
$custom-light: #7481af;
$custom-dark: #000000;
JSON
{
  "hex": "#34518e",
  "rgb": {
    "r": 52,
    "g": 81,
    "b": 142
  },
  "hsl": {
    "h": 220.667,
    "s": 46.392,
    "l": 38.039
  },
  "oklch": {
    "l": 0.44397,
    "c": 0.10633,
    "h": 263.5
  },
  "luminance": 0.08568
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #34518E

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

Preview Lab → · Contrast checker → · Palette generator →

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