#40587C#40587C

#40587C is a mid, moderate blue. Relative luminance 0.095; OKLCH L 45.7% C 0.066 H 258.3°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#40587C
RGBrgb(64, 88, 124)
HSLhsl(216, 32%, 37%)
HSVhsv(216, 48%, 49%)
CMYKcmyk(48.4%, 29%, 0%, 51.4%)
CIE-LABlab(36.97, 1.58, -23.14)
CIE-LCHlch(36.97, 23.19, 273.89°)
OKLaboklab(45.7% -0.0134 -0.0647)
OKLCHoklch(45.7% 0.066 258.3)
XYZxyz(9.2410, 9.5241, 20.4163)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40587C #7C6440
analogous
#40767C #40587C #46407C
triadic
#40587C #7C4058 #587C40
tetradic
#40587C #7C4076 #7C6440 #407C46
square
#40587C #7C4076 #7C6440 #407C46
split-complementary
#40587C #7C4640 #767C40
monochromatic
#161F2B #2B3B54 #40587C #5575A4 #7B95BB

Accessibility & contrast

On white

7.23
#40587C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40587C
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40587C#FFFFFF#000000##FFFFFF
##40587C1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5A7E
Deuteranopia (green-blind)
#43547B
Tritanopia (blue-blind)
#286065
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #40587c;
/* rgb */ color: rgb(64, 88, 124);
/* oklch */ color: oklch(45.7% 0.066 258.3);
Tailwind
colors: {
  custom: {
    50: '#7887a2',
    500: '#40587c',
    950: '#000000',
  },
}
SCSS
$custom: #40587c;
$custom-light: #7887a2;
$custom-dark: #000000;
JSON
{
  "hex": "#40587c",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 124
  },
  "hsl": {
    "h": 216,
    "s": 31.915,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45696,
    "c": 0.06609,
    "h": 258.3
  },
  "luminance": 0.09525
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40587C

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

Preview Lab → · Contrast checker → · Palette generator →

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