#40587B#40587B

#40587B is a mid, moderate blue. Relative luminance 0.095; OKLCH L 45.6% C 0.065 H 257.7°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#40587B
RGBrgb(64, 88, 123)
HSLhsl(216, 32%, 37%)
HSVhsv(216, 48%, 48%)
CMYKcmyk(48%, 28.5%, 0%, 51.8%)
CIE-LABlab(36.93, 1.25, -22.60)
CIE-LCHlch(36.93, 22.63, 273.17°)
OKLaboklab(45.64% -0.0137 -0.0632)
OKLCHoklch(45.64% 0.065 257.7)
XYZxyz(9.1780, 9.4989, 20.0849)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40587B #7B6340
analogous
#40767B #40587B #46407B
triadic
#40587B #7B4058 #587B40
tetradic
#40587B #7B4076 #7B6340 #407B46
square
#40587B #7B4076 #7B6340 #407B46
split-complementary
#40587B #7B4640 #767B40
monochromatic
#161E2A #2B3B53 #40587B #5575A3 #7B95BA

Accessibility & contrast

On white

7.24
#40587B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40587B
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40587B#FFFFFF#000000##FFFFFF
##40587B1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5A7D
Deuteranopia (green-blind)
#44547A
Tritanopia (blue-blind)
#286064
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #40587b;
/* rgb */ color: rgb(64, 88, 123);
/* oklch */ color: oklch(45.6% 0.065 257.7);
Tailwind
colors: {
  custom: {
    50: '#7887a1',
    500: '#40587b',
    950: '#000000',
  },
}
SCSS
$custom: #40587b;
$custom-light: #7887a1;
$custom-dark: #000000;
JSON
{
  "hex": "#40587b",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 123
  },
  "hsl": {
    "h": 215.593,
    "s": 31.551,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45644,
    "c": 0.06464,
    "h": 257.7
  },
  "luminance": 0.09499
}

Semantic roles & 50–950 ramp

primary
#40587B
secondary
#A59072
accent
#9E60C8
background
#F7F8F9
surface
#EDEFF2
border
#C8CACC
text
#090B0F
muted
#7B7C7E

Preview Lab

Preview with #40587B

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

Preview Lab → · Contrast checker → · Palette generator →

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