#34518C#34518C

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

Color values

HEX#34518C
RGBrgb(52, 81, 140)
HSLhsl(220, 46%, 38%)
HSVhsv(220, 63%, 55%)
CMYKcmyk(62.9%, 42.1%, 0%, 45.1%)
CIE-LABlab(35.02, 8.75, -36.07)
CIE-LCHlch(35.02, 37.11, 283.64°)
OKLaboklab(44.27% -0.0124 -0.1026)
OKLCHoklch(44.27% 0.103 263.1)
XYZxyz(9.0906, 8.5076, 25.9689)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34518C #8C6F34
analogous
#347D8C #34518C #43348C
triadic
#34518C #8C3451 #518C34
tetradic
#34518C #8C347D #8C6F34 #348C43
square
#34518C #8C347D #8C6F34 #348C43
split-complementary
#34518C #8C4334 #7D8C34
monochromatic
#131D33 #23375F #34518C #456BB9 #708ECA

Accessibility & contrast

On white

7.77
#34518C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34518C
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34518C#FFFFFF#000000##FFFFFF
##34518C1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37578E
Deuteranopia (green-blind)
#2A4F8B
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #34518c;
/* rgb */ color: rgb(52, 81, 140);
/* oklch */ color: oklch(44.3% 0.103 263.1);
Tailwind
colors: {
  custom: {
    50: '#7481ae',
    500: '#34518c',
    950: '#000000',
  },
}
SCSS
$custom: #34518c;
$custom-light: #7481ae;
$custom-dark: #000000;
JSON
{
  "hex": "#34518c",
  "rgb": {
    "r": 52,
    "g": 81,
    "b": 140
  },
  "hsl": {
    "h": 220.227,
    "s": 45.833,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44267,
    "c": 0.10338,
    "h": 263.1
  },
  "luminance": 0.08508
}

Semantic roles & 50–950 ramp

primary
#34518C
secondary
#B29A6A
accent
#AA52D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #34518C

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

Preview Lab → · Contrast checker → · Palette generator →

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