#40567F#40567F

#40567F is a mid, moderate blue. Relative luminance 0.093; OKLCH L 45.4% C 0.073 H 262.3°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#40567F
RGBrgb(64, 86, 127)
HSLhsl(219, 33%, 37%)
HSVhsv(219, 50%, 50%)
CMYKcmyk(49.6%, 32.3%, 0%, 50.2%)
CIE-LABlab(36.51, 3.82, -25.70)
CIE-LCHlch(36.51, 25.98, 278.45°)
OKLaboklab(45.38% -0.0098 -0.0721)
OKLCHoklch(45.38% 0.073 262.3)
XYZxyz(9.2716, 9.2773, 21.3767)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40567F #7F6940
analogous
#40757F #40567F #4A407F
triadic
#40567F #7F4056 #567F40
tetradic
#40567F #7F4075 #7F6940 #407F4A
square
#40567F #7F4075 #7F6940 #407F4A
split-complementary
#40567F #7F4A40 #757F40
monochromatic
#171F2E #2B3A56 #40567F #5572A8 #7C93BD

Accessibility & contrast

On white

7.35
#40567F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#40567F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40567F
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40567F#FFFFFF#000000##FFFFFF
##40567F1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475981
Deuteranopia (green-blind)
#40537E
Tritanopia (blue-blind)
#265F65
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #40567f;
/* rgb */ color: rgb(64, 86, 127);
/* oklch */ color: oklch(45.4% 0.073 262.3);
Tailwind
colors: {
  custom: {
    50: '#7885a4',
    500: '#40567f',
    950: '#000000',
  },
}
SCSS
$custom: #40567f;
$custom-light: #7885a4;
$custom-dark: #000000;
JSON
{
  "hex": "#40567f",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 127
  },
  "hsl": {
    "h": 219.048,
    "s": 32.984,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45383,
    "c": 0.07279,
    "h": 262.3
  },
  "luminance": 0.09278
}

Semantic roles & 50–950 ramp

primary
#40567F
secondary
#A89573
accent
#A45FC9
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#090B0F
muted
#7B7C7F

Preview Lab

Preview with #40567F

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

Preview Lab → · Contrast checker → · Palette generator →

#40567F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva