#40477D#40477D

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

Color values

HEX#40477D
RGBrgb(64, 71, 125)
HSLhsl(233, 32%, 37%)
HSVhsv(233, 49%, 49%)
CMYKcmyk(48.8%, 43.2%, 0%, 51%)
CIE-LABlab(31.98, 12.93, -31.60)
CIE-LCHlch(31.98, 34.14, 292.25°)
OKLaboklab(41.85% 0.0097 -0.0894)
OKLCHoklch(41.85% 0.09 276.2)
XYZxyz(8.0681, 7.0767, 20.3389)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40477D #7D7640
analogous
#40667D #40477D #58407D
triadic
#40477D #7D4047 #477D40
tetradic
#40477D #7D4066 #7D7640 #407D58
square
#40477D #7D4066 #7D7640 #407D58
split-complementary
#40477D #7D5840 #667D40
monochromatic
#17192C #2B3055 #40477D #555EA5 #7C83BC

Accessibility & contrast

On white

8.69
#40477D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40477D
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40477D#FFFFFF#000000##FFFFFF
##40477D1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324E7F
Deuteranopia (green-blind)
#2D497C
Tritanopia (blue-blind)
#2A525C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #40477d;
/* rgb */ color: rgb(64, 71, 125);
/* oklch */ color: oklch(41.8% 0.090 276.2);
Tailwind
colors: {
  custom: {
    50: '#797aa3',
    500: '#40477d',
    950: '#000000',
  },
}
SCSS
$custom: #40477d;
$custom-light: #797aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#40477d",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 125
  },
  "hsl": {
    "h": 233.115,
    "s": 32.275,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41849,
    "c": 0.08992,
    "h": 276.2
  },
  "luminance": 0.07077
}

Semantic roles & 50–950 ramp

primary
#40477D
secondary
#A6A073
accent
#BC5FC8
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09090F
muted
#7B7B7F

Preview Lab

Preview with #40477D

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

Preview Lab → · Contrast checker → · Palette generator →

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