#40587D#40587D

#40587D is a mid, moderate blue. Relative luminance 0.096; OKLCH L 45.7% C 0.068 H 258.8°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#40587D
RGBrgb(64, 88, 125)
HSLhsl(216, 32%, 37%)
HSVhsv(216, 49%, 49%)
CMYKcmyk(48.8%, 29.6%, 0%, 51%)
CIE-LABlab(37.02, 1.90, -23.68)
CIE-LCHlch(37.02, 23.75, 274.58°)
OKLaboklab(45.75% -0.0131 -0.0663)
OKLCHoklch(45.75% 0.068 258.8)
XYZxyz(9.3045, 9.5495, 20.7510)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40587D #7D6540
analogous
#40777D #40587D #46407D
triadic
#40587D #7D4058 #587D40
tetradic
#40587D #7D4077 #7D6540 #407D46
square
#40587D #7D4077 #7D6540 #407D46
split-complementary
#40587D #7D4640 #777D40
monochromatic
#171F2C #2B3C55 #40587D #5574A5 #7C95BC

Accessibility & contrast

On white

7.22
#40587D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#40587D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40587D
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40587D#FFFFFF#000000##FFFFFF
##40587D1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5A7F
Deuteranopia (green-blind)
#43547C
Tritanopia (blue-blind)
#276065
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #40587d;
/* rgb */ color: rgb(64, 88, 125);
/* oklch */ color: oklch(45.7% 0.068 258.8);
Tailwind
colors: {
  custom: {
    50: '#7887a3',
    500: '#40587d',
    950: '#000000',
  },
}
SCSS
$custom: #40587d;
$custom-light: #7887a3;
$custom-dark: #000000;
JSON
{
  "hex": "#40587d",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 125
  },
  "hsl": {
    "h": 216.393,
    "s": 32.275,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45749,
    "c": 0.06756,
    "h": 258.8
  },
  "luminance": 0.0955
}

Semantic roles & 50–950 ramp

primary
#40587D
secondary
#A69273
accent
#9F5FC8
background
#F7F8FA
surface
#EDEFF3
border
#C8CACD
text
#090B0F
muted
#7B7C7F

Preview Lab

Preview with #40587D

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

Preview Lab → · Contrast checker → · Palette generator →

#40587D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva