#40529B#40529B

#40529B is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.2% C 0.120 H 270.7°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#40529B
RGBrgb(64, 82, 155)
HSLhsl(228, 42%, 43%)
HSVhsv(228, 59%, 61%)
CMYKcmyk(58.7%, 47.1%, 0%, 39.2%)
CIE-LABlab(36.91, 15.93, -42.10)
CIE-LCHlch(36.91, 45.01, 290.73°)
OKLaboklab(46.2% 0.0014 -0.12)
OKLCHoklch(46.2% 0.12 270.7)
XYZxyz(11.0461, 9.4903, 32.2537)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40529B #9B8940
analogous
#407F9B #40529B #5B409B
triadic
#40529B #9B4052 #529B40
tetradic
#40529B #9B407F #9B8940 #409B5B
square
#40529B #9B407F #9B8940 #409B5B
split-complementary
#40529B #9B5B40 #7F9B40
monochromatic
#1C2444 #2E3B70 #40529B #5C6FBC #8896CE

Accessibility & contrast

On white

7.25
#40529B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#40529B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40529B
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40529B#FFFFFF#000000##FFFFFF
##40529B1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305B9E
Deuteranopia (green-blind)
#235399
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #40529b;
/* rgb */ color: rgb(64, 82, 155);
/* oklch */ color: oklch(46.2% 0.120 270.7);
Tailwind
colors: {
  custom: {
    50: '#7d82b9',
    500: '#40529b',
    950: '#000000',
  },
}
SCSS
$custom: #40529b;
$custom-light: #7d82b9;
$custom-dark: #000000;
JSON
{
  "hex": "#40529b",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 155
  },
  "hsl": {
    "h": 228.132,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.462,
    "c": 0.12006,
    "h": 270.7
  },
  "luminance": 0.09491
}

Semantic roles & 50–950 ramp

primary
#40529B
secondary
#B8AD7E
accent
#B956D1
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #40529B

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

Preview Lab → · Contrast checker → · Palette generator →

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