#40528A#40528A

#40528A is a mid, moderate blue. Relative luminance 0.090; OKLCH L 45.1% C 0.095 H 268.9°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#40528A
RGBrgb(64, 82, 138)
HSLhsl(225, 37%, 40%)
HSVhsv(225, 54%, 54%)
CMYKcmyk(53.6%, 40.6%, 0%, 45.9%)
CIE-LABlab(35.91, 10.07, -33.40)
CIE-LCHlch(35.91, 34.88, 286.78°)
OKLaboklab(45.1% -0.0017 -0.0945)
OKLCHoklch(45.1% 0.095 268.9)
XYZxyz(9.7176, 8.9589, 25.2570)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40528A #8A7840
analogous
#40778A #40528A #53408A
triadic
#40528A #8A4052 #528A40
tetradic
#40528A #8A4077 #8A7840 #408A53
square
#40528A #8A4077 #8A7840 #408A53
split-complementary
#40528A #8A5340 #778A40
monochromatic
#192036 #2D3960 #40528A #566CB1 #8091C4

Accessibility & contrast

On white

7.52
#40528A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#40528A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40528A
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40528A#FFFFFF#000000##FFFFFF
##40528A1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C588C
Deuteranopia (green-blind)
#335189
Tritanopia (blue-blind)
#1D5E67
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #40528a;
/* rgb */ color: rgb(64, 82, 138);
/* oklch */ color: oklch(45.1% 0.095 268.9);
Tailwind
colors: {
  custom: {
    50: '#7a82ac',
    500: '#40528a',
    950: '#000000',
  },
}
SCSS
$custom: #40528a;
$custom-light: #7a82ac;
$custom-dark: #000000;
JSON
{
  "hex": "#40528a",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 138
  },
  "hsl": {
    "h": 225.405,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45102,
    "c": 0.09457,
    "h": 268.9
  },
  "luminance": 0.0896
}

Semantic roles & 50–950 ramp

primary
#40528A
secondary
#AFA177
accent
#B15BCD
background
#F7F7FA
surface
#EEEEF4
border
#C9C9CE
text
#0A0A10
muted
#7C7C7F

Preview Lab

Preview with #40528A

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

Preview Lab → · Contrast checker → · Palette generator →

#40528A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva