#40477A#40477A

#40477A is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.7% C 0.085 H 276.1°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#40477A
RGBrgb(64, 71, 122)
HSLhsl(233, 31%, 36%)
HSVhsv(233, 48%, 48%)
CMYKcmyk(47.5%, 41.8%, 0%, 52.2%)
CIE-LABlab(31.81, 11.94, -30.00)
CIE-LCHlch(31.81, 32.29, 291.70°)
OKLaboklab(41.66% 0.0091 -0.0847)
OKLCHoklch(41.66% 0.085 276.1)
XYZxyz(7.8794, 7.0012, 19.3448)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40477A #7A7340
analogous
#40647A #40477A #56407A
triadic
#40477A #7A4047 #477A40
tetradic
#40477A #7A4064 #7A7340 #407A56
square
#40477A #7A4064 #7A7340 #407A56
split-complementary
#40477A #7A5640 #647A40
monochromatic
#16182A #2B3052 #40477A #555EA2 #7B82BA

Accessibility & contrast

On white

8.75
#40477A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#40477A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40477A
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40477A#FFFFFF#000000##FFFFFF
##40477A1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344D7C
Deuteranopia (green-blind)
#2F4979
Tritanopia (blue-blind)
#2C525A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #40477a;
/* rgb */ color: rgb(64, 71, 122);
/* oklch */ color: oklch(41.7% 0.085 276.1);
Tailwind
colors: {
  custom: {
    50: '#787aa1',
    500: '#40477a',
    950: '#000000',
  },
}
SCSS
$custom: #40477a;
$custom-light: #787aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#40477a",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 122
  },
  "hsl": {
    "h": 232.759,
    "s": 31.183,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41662,
    "c": 0.08521,
    "h": 276.1
  },
  "luminance": 0.07002
}

Semantic roles & 50–950 ramp

primary
#40477A
secondary
#A49E72
accent
#BB60C7
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09090F
muted
#7B7B7E

Preview Lab

Preview with #40477A

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

Preview Lab → · Contrast checker → · Palette generator →

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