#40477E#40477E

#40477E is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.9% C 0.091 H 276.2°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#40477E
RGBrgb(64, 71, 126)
HSLhsl(233, 33%, 37%)
HSVhsv(233, 49%, 49%)
CMYKcmyk(49.2%, 43.7%, 0%, 50.6%)
CIE-LABlab(32.04, 13.26, -32.13)
CIE-LCHlch(32.04, 34.76, 292.42°)
OKLaboklab(41.91% 0.0099 -0.0909)
OKLCHoklch(41.91% 0.091 276.2)
XYZxyz(8.1323, 7.1024, 20.6770)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40477E #7E7740
analogous
#40667E #40477E #58407E
triadic
#40477E #7E4047 #477E40
tetradic
#40477E #7E4066 #7E7740 #407E58
square
#40477E #7E4066 #7E7740 #407E58
split-complementary
#40477E #7E5840 #667E40
monochromatic
#17192D #2B3055 #40477E #555EA7 #7C83BC

Accessibility & contrast

On white

8.68
#40477E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#40477E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40477E
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40477E#FFFFFF#000000##FFFFFF
##40477E1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324E80
Deuteranopia (green-blind)
#2C497D
Tritanopia (blue-blind)
#29525C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #40477e;
/* rgb */ color: rgb(64, 71, 126);
/* oklch */ color: oklch(41.9% 0.091 276.2);
Tailwind
colors: {
  custom: {
    50: '#797aa4',
    500: '#40477e',
    950: '#000000',
  },
}
SCSS
$custom: #40477e;
$custom-light: #797aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#40477e",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 126
  },
  "hsl": {
    "h": 233.226,
    "s": 32.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41912,
    "c": 0.09148,
    "h": 276.2
  },
  "luminance": 0.07103
}

Semantic roles & 50–950 ramp

primary
#40477E
secondary
#A7A173
accent
#BD5FC9
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09090F
muted
#7B7B7F

Preview Lab

Preview with #40477E

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

Preview Lab → · Contrast checker → · Palette generator →

#40477E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva