#40577D#40577D

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

Color values

HEX#40577D
RGBrgb(64, 87, 125)
HSLhsl(217, 32%, 37%)
HSVhsv(217, 49%, 49%)
CMYKcmyk(48.8%, 30.4%, 0%, 51%)
CIE-LABlab(36.72, 2.53, -24.15)
CIE-LCHlch(36.72, 24.28, 275.98°)
OKLaboklab(45.51% -0.0117 -0.0676)
OKLCHoklch(45.51% 0.069 260.1)
XYZxyz(9.2230, 9.3865, 20.7238)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40577D #7D6640
analogous
#40767D #40577D #48407D
triadic
#40577D #7D4057 #577D40
tetradic
#40577D #7D4076 #7D6640 #407D48
square
#40577D #7D4076 #7D6640 #407D48
split-complementary
#40577D #7D4840 #767D40
monochromatic
#171F2C #2B3B55 #40577D #5573A5 #7C94BC

Accessibility & contrast

On white

7.30
#40577D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#40577D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40577D
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40577D#FFFFFF#000000##FFFFFF
##40577D1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#495A7F
Deuteranopia (green-blind)
#42547C
Tritanopia (blue-blind)
#275F64
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #40577d;
/* rgb */ color: rgb(64, 87, 125);
/* oklch */ color: oklch(45.5% 0.069 260.1);
Tailwind
colors: {
  custom: {
    50: '#7886a3',
    500: '#40577d',
    950: '#000000',
  },
}
SCSS
$custom: #40577d;
$custom-light: #7886a3;
$custom-dark: #000000;
JSON
{
  "hex": "#40577d",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 125
  },
  "hsl": {
    "h": 217.377,
    "s": 32.275,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45511,
    "c": 0.06866,
    "h": 260.1
  },
  "luminance": 0.09387
}

Semantic roles & 50–950 ramp

primary
#40577D
secondary
#A69373
accent
#A15FC8
background
#F7F8FA
surface
#EDEFF3
border
#C8CACD
text
#090B0F
muted
#7B7C7F

Preview Lab

Preview with #40577D

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

Preview Lab → · Contrast checker → · Palette generator →

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