#40529A#40529A

#40529A is a mid, moderate blue. Relative luminance 0.095; OKLCH L 46.1% C 0.119 H 270.6°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#40529A
RGBrgb(64, 82, 154)
HSLhsl(228, 41%, 43%)
HSVhsv(228, 58%, 60%)
CMYKcmyk(58.4%, 46.8%, 0%, 39.6%)
CIE-LABlab(36.85, 15.59, -41.59)
CIE-LCHlch(36.85, 44.42, 290.54°)
OKLaboklab(46.13% 0.0013 -0.1186)
OKLCHoklch(46.13% 0.119 270.6)
XYZxyz(10.9624, 9.4568, 31.8133)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40529A #9A8840
analogous
#407F9A #40529A #5B409A
triadic
#40529A #9A4052 #529A40
tetradic
#40529A #9A407F #9A8840 #409A5B
square
#40529A #9A407F #9A8840 #409A5B
split-complementary
#40529A #9A5B40 #7F9A40
monochromatic
#1C2444 #2E3B6F #40529A #5C6FBB #8795CD

Accessibility & contrast

On white

7.26
#40529A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#40529A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40529A
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40529A#FFFFFF#000000##FFFFFF
##40529A1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315B9D
Deuteranopia (green-blind)
#245398
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #40529a;
/* rgb */ color: rgb(64, 82, 154);
/* oklch */ color: oklch(46.1% 0.119 270.6);
Tailwind
colors: {
  custom: {
    50: '#7c82b8',
    500: '#40529a',
    950: '#000000',
  },
}
SCSS
$custom: #40529a;
$custom-light: #7c82b8;
$custom-dark: #000000;
JSON
{
  "hex": "#40529a",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 154
  },
  "hsl": {
    "h": 228,
    "s": 41.284,
    "l": 42.745
  },
  "oklch": {
    "l": 0.46132,
    "c": 0.11859,
    "h": 270.6
  },
  "luminance": 0.09458
}

Semantic roles & 50–950 ramp

primary
#40529A
secondary
#B8AC7E
accent
#B957D1
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #40529A

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

Preview Lab → · Contrast checker → · Palette generator →

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