#40456E#40456E

#40456E is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.5% C 0.069 H 277.5°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#40456E
RGBrgb(64, 69, 110)
HSLhsl(233, 26%, 34%)
HSVhsv(233, 42%, 43%)
CMYKcmyk(41.8%, 37.3%, 0%, 56.9%)
CIE-LABlab(30.57, 9.40, -24.41)
CIE-LCHlch(30.57, 26.16, 291.05°)
OKLaboklab(40.5% 0.0091 -0.0685)
OKLCHoklch(40.5% 0.069 277.5)
XYZxyz(7.0561, 6.4717, 15.6262)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40456E #6E6940
analogous
#405C6E #40456E #52406E
triadic
#40456E #6E4045 #456E40
tetradic
#40456E #6E405C #6E6940 #406E52
square
#40456E #6E405C #6E6940 #406E52
split-complementary
#40456E #6E5240 #5C6E40
monochromatic
#131421 #292D47 #40456E #575D95 #787EB0

Accessibility & contrast

On white

9.15
#40456E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#40456E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40456E
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40456E#FFFFFF#000000##FFFFFF
##40456E1.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374A70
Deuteranopia (green-blind)
#34466D
Tritanopia (blue-blind)
#324D54
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #40456e;
/* rgb */ color: rgb(64, 69, 110);
/* oklch */ color: oklch(40.5% 0.069 277.5);
Tailwind
colors: {
  custom: {
    50: '#777898',
    500: '#40456e',
    950: '#000000',
  },
}
SCSS
$custom: #40456e;
$custom-light: #777898;
$custom-dark: #000000;
JSON
{
  "hex": "#40456e",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 110
  },
  "hsl": {
    "h": 233.478,
    "s": 26.437,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40499,
    "c": 0.06906,
    "h": 277.5
  },
  "luminance": 0.06472
}

Semantic roles & 50–950 ramp

primary
#40456E
secondary
#9B976E
accent
#B965C3
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09090D
muted
#7B7B7E

Preview Lab

Preview with #40456E

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

Preview Lab → · Contrast checker → · Palette generator →

#40456E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva