#40476D#40476D

#40476D is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.9% C 0.064 H 275.2°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#40476D
RGBrgb(64, 71, 109)
HSLhsl(231, 26%, 34%)
HSVhsv(231, 41%, 43%)
CMYKcmyk(41.3%, 34.9%, 0%, 57.3%)
CIE-LABlab(31.11, 7.76, -22.93)
CIE-LCHlch(31.11, 24.21, 288.70°)
OKLaboklab(40.9% 0.0059 -0.0642)
OKLCHoklch(40.9% 0.064 275.2)
XYZxyz(7.1271, 6.7003, 15.3828)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40476D #6D6640
analogous
#405E6D #40476D #50406D
triadic
#40476D #6D4047 #476D40
tetradic
#40476D #6D405E #6D6640 #406D50
square
#40476D #6D405E #6D6640 #406D50
split-complementary
#40476D #6D5040 #5E6D40
monochromatic
#131520 #292E46 #40476D #576094 #7880B0

Accessibility & contrast

On white

8.97
#40476D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#40476D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40476D
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40476D#FFFFFF#000000##FFFFFF
##40476D1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A4B6F
Deuteranopia (green-blind)
#37486C
Tritanopia (blue-blind)
#324F55
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #40476d;
/* rgb */ color: rgb(64, 71, 109);
/* oklch */ color: oklch(40.9% 0.064 275.2);
Tailwind
colors: {
  custom: {
    50: '#777a97',
    500: '#40476d',
    950: '#000000',
  },
}
SCSS
$custom: #40476d;
$custom-light: #777a97;
$custom-dark: #000000;
JSON
{
  "hex": "#40476d",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 109
  },
  "hsl": {
    "h": 230.667,
    "s": 26.012,
    "l": 33.922
  },
  "oklch": {
    "l": 0.409,
    "c": 0.06443,
    "h": 275.2
  },
  "luminance": 0.06701
}

Semantic roles & 50–950 ramp

primary
#40476D
secondary
#9B946E
accent
#B465C2
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09090D
muted
#7B7B7E

Preview Lab

Preview with #40476D

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

Preview Lab → · Contrast checker → · Palette generator →

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