#40529F#40529F

#40529F is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.5% C 0.126 H 270.9°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#40529F
RGBrgb(64, 82, 159)
HSLhsl(229, 43%, 44%)
HSVhsv(229, 60%, 62%)
CMYKcmyk(59.7%, 48.4%, 0%, 37.6%)
CIE-LABlab(37.16, 17.33, -44.09)
CIE-LCHlch(37.16, 47.38, 291.46°)
OKLaboklab(46.47% 0.002 -0.1259)
OKLCHoklch(46.47% 0.126 270.9)
XYZxyz(11.3876, 9.6269, 34.0522)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40529F #9F8D40
analogous
#40819F #40529F #5D409F
triadic
#40529F #9F4052 #529F40
tetradic
#40529F #9F4081 #9F8D40 #409F5D
square
#40529F #9F4081 #9F8D40 #409F5D
split-complementary
#40529F #9F5D40 #819F40
monochromatic
#1D2548 #2E3B73 #40529F #5E70BE #8A97D0

Accessibility & contrast

On white

7.18
#40529F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#40529F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40529F
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40529F#FFFFFF#000000##FFFFFF
##40529F1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5CA2
Deuteranopia (green-blind)
#1D539D
Tritanopia (blue-blind)
#006371
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #40529f;
/* rgb */ color: rgb(64, 82, 159);
/* oklch */ color: oklch(46.5% 0.126 270.9);
Tailwind
colors: {
  custom: {
    50: '#7d82bc',
    500: '#40529f',
    950: '#000000',
  },
}
SCSS
$custom: #40529f;
$custom-light: #7d82bc;
$custom-dark: #000000;
JSON
{
  "hex": "#40529f",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 159
  },
  "hsl": {
    "h": 228.632,
    "s": 42.601,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46474,
    "c": 0.12594,
    "h": 270.9
  },
  "luminance": 0.09628
}

Semantic roles & 50–950 ramp

primary
#40529F
secondary
#BBAF80
accent
#BB55D2
background
#F8F7FB
surface
#EFEEF6
border
#CAC9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #40529F

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

Preview Lab → · Contrast checker → · Palette generator →

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