#40577C#40577C

#40577C is a mid, moderate blue. Relative luminance 0.094; OKLCH L 45.5% C 0.067 H 259.7°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#40577C
RGBrgb(64, 87, 124)
HSLhsl(217, 32%, 37%)
HSVhsv(217, 48%, 49%)
CMYKcmyk(48.4%, 29.8%, 0%, 51.4%)
CIE-LABlab(36.67, 2.21, -23.61)
CIE-LCHlch(36.67, 23.71, 275.34°)
OKLaboklab(45.46% -0.0121 -0.0661)
OKLCHoklch(45.46% 0.067 259.7)
XYZxyz(9.1594, 9.3610, 20.3891)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40577C #7C6540
analogous
#40757C #40577C #47407C
triadic
#40577C #7C4057 #577C40
tetradic
#40577C #7C4075 #7C6540 #407C47
square
#40577C #7C4075 #7C6540 #407C47
split-complementary
#40577C #7C4740 #757C40
monochromatic
#161E2B #2B3B54 #40577C #5573A4 #7B94BB

Accessibility & contrast

On white

7.31
#40577C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#40577C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40577C
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40577C#FFFFFF#000000##FFFFFF
##40577C1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49597E
Deuteranopia (green-blind)
#42547B
Tritanopia (blue-blind)
#285F64
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #40577c;
/* rgb */ color: rgb(64, 87, 124);
/* oklch */ color: oklch(45.5% 0.067 259.7);
Tailwind
colors: {
  custom: {
    50: '#7886a2',
    500: '#40577c',
    950: '#000000',
  },
}
SCSS
$custom: #40577c;
$custom-light: #7886a2;
$custom-dark: #000000;
JSON
{
  "hex": "#40577c",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 124
  },
  "hsl": {
    "h": 217,
    "s": 31.915,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45459,
    "c": 0.06718,
    "h": 259.7
  },
  "luminance": 0.09362
}

Semantic roles & 50–950 ramp

primary
#40577C
secondary
#A69272
accent
#A060C8
background
#F7F8F9
surface
#EDEFF2
border
#C8CACC
text
#090B0F
muted
#7B7C7E

Preview Lab

Preview with #40577C

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

Preview Lab → · Contrast checker → · Palette generator →

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