#40477C#40477C

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

Color values

HEX#40477C
RGBrgb(64, 71, 124)
HSLhsl(233, 32%, 37%)
HSVhsv(233, 48%, 49%)
CMYKcmyk(48.4%, 42.7%, 0%, 51.4%)
CIE-LABlab(31.92, 12.60, -31.07)
CIE-LCHlch(31.92, 33.53, 292.07°)
OKLaboklab(41.79% 0.0095 -0.0878)
OKLCHoklch(41.79% 0.088 276.2)
XYZxyz(8.0046, 7.0513, 20.0041)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40477C #7C7540
analogous
#40657C #40477C #57407C
triadic
#40477C #7C4047 #477C40
tetradic
#40477C #7C4065 #7C7540 #407C57
square
#40477C #7C4065 #7C7540 #407C57
split-complementary
#40477C #7C5740 #657C40
monochromatic
#16192B #2B3054 #40477C #555EA4 #7B83BB

Accessibility & contrast

On white

8.71
#40477C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#40477C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40477C
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40477C#FFFFFF#000000##FFFFFF
##40477C1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334E7E
Deuteranopia (green-blind)
#2E497B
Tritanopia (blue-blind)
#2A525B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #40477c;
/* rgb */ color: rgb(64, 71, 124);
/* oklch */ color: oklch(41.8% 0.088 276.2);
Tailwind
colors: {
  custom: {
    50: '#787aa2',
    500: '#40477c',
    950: '#000000',
  },
}
SCSS
$custom: #40477c;
$custom-light: #787aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#40477c",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 124
  },
  "hsl": {
    "h": 233,
    "s": 31.915,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41786,
    "c": 0.08835,
    "h": 276.2
  },
  "luminance": 0.07052
}

Semantic roles & 50–950 ramp

primary
#40477C
secondary
#A6A072
accent
#BC60C8
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#09090F
muted
#7B7B7F

Preview Lab

Preview with #40477C

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

Preview Lab → · Contrast checker → · Palette generator →

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