#40476A#40476A

#40476A is a dark, muted blue. Relative luminance 0.066; OKLCH L 40.7% C 0.060 H 274.8°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#40476A
RGBrgb(64, 71, 106)
HSLhsl(230, 25%, 33%)
HSVhsv(230, 40%, 42%)
CMYKcmyk(39.6%, 33%, 0%, 58.4%)
CIE-LABlab(30.97, 6.83, -21.27)
CIE-LCHlch(30.97, 22.34, 287.80°)
OKLaboklab(40.74% 0.005 -0.0594)
OKLCHoklch(40.74% 0.06 274.8)
XYZxyz(6.9683, 6.6368, 14.5467)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40476A #6A6340
analogous
#405C6A #40476A #4E406A
triadic
#40476A #6A4047 #476A40
tetradic
#40476A #6A405C #6A6340 #406A4E
square
#40476A #6A405C #6A6340 #406A4E
split-complementary
#40476A #6A4E40 #5C6A40
monochromatic
#12141E #292D44 #40476A #576190 #7780AD

Accessibility & contrast

On white

9.02
#40476A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#40476A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40476A
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40476A#FFFFFF#000000##FFFFFF
##40476A1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C4B6B
Deuteranopia (green-blind)
#384769
Tritanopia (blue-blind)
#344E54
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #40476a;
/* rgb */ color: rgb(64, 71, 106);
/* oklch */ color: oklch(40.7% 0.060 274.8);
Tailwind
colors: {
  custom: {
    50: '#767a94',
    500: '#40476a',
    950: '#000000',
  },
}
SCSS
$custom: #40476a;
$custom-light: #767a94;
$custom-dark: #000000;
JSON
{
  "hex": "#40476a",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 106
  },
  "hsl": {
    "h": 230,
    "s": 24.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.40736,
    "c": 0.05957,
    "h": 274.8
  },
  "luminance": 0.06637
}

Semantic roles & 50–950 ramp

primary
#40476A
secondary
#98916D
accent
#B267C1
background
#F7F7F9
surface
#EDEDF1
border
#C8C8CB
text
#09090D
muted
#7B7B7E

Preview Lab

Preview with #40476A

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

Preview Lab → · Contrast checker → · Palette generator →

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