#40476F#40476F

#40476F is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.0% C 0.068 H 275.4°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#40476F
RGBrgb(64, 71, 111)
HSLhsl(231, 27%, 34%)
HSVhsv(231, 42%, 44%)
CMYKcmyk(42.3%, 36%, 0%, 56.5%)
CIE-LABlab(31.22, 8.39, -24.04)
CIE-LCHlch(31.22, 25.46, 289.25°)
OKLaboklab(41.01% 0.0064 -0.0674)
OKLCHoklch(41.01% 0.068 275.4)
XYZxyz(7.2360, 6.7438, 15.9563)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40476F #6F6840
analogous
#405F6F #40476F #51406F
triadic
#40476F #6F4047 #476F40
tetradic
#40476F #6F405F #6F6840 #406F51
square
#40476F #6F405F #6F6840 #406F51
split-complementary
#40476F #6F5140 #5F6F40
monochromatic
#131521 #2A2E48 #40476F #566096 #7881B1

Accessibility & contrast

On white

8.94
#40476F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#40476F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40476F
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40476F#FFFFFF#000000##FFFFFF
##40476F1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394B71
Deuteranopia (green-blind)
#36486E
Tritanopia (blue-blind)
#314F56
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #40476f;
/* rgb */ color: rgb(64, 71, 111);
/* oklch */ color: oklch(41.0% 0.068 275.4);
Tailwind
colors: {
  custom: {
    50: '#777a98',
    500: '#40476f',
    950: '#000000',
  },
}
SCSS
$custom: #40476f;
$custom-light: #777a98;
$custom-dark: #000000;
JSON
{
  "hex": "#40476f",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 111
  },
  "hsl": {
    "h": 231.064,
    "s": 26.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.41012,
    "c": 0.06767,
    "h": 275.4
  },
  "luminance": 0.06744
}

Semantic roles & 50–950 ramp

primary
#40476F
secondary
#9C956F
accent
#B565C3
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09090D
muted
#7B7B7E

Preview Lab

Preview with #40476F

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

Preview Lab → · Contrast checker → · Palette generator →

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