#40517C#40517C

#40517C is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.1% C 0.074 H 266.9°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#40517C
RGBrgb(64, 81, 124)
HSLhsl(223, 32%, 37%)
HSVhsv(223, 48%, 49%)
CMYKcmyk(48.4%, 34.7%, 0%, 51.4%)
CIE-LABlab(34.86, 6.05, -26.44)
CIE-LCHlch(34.86, 27.12, 282.89°)
OKLaboklab(44.05% -0.004 -0.0743)
OKLCHoklch(44.05% 0.074 266.9)
XYZxyz(8.6937, 8.4296, 20.2338)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40517C #7C6B40
analogous
#406F7C #40517C #4D407C
triadic
#40517C #7C4051 #517C40
tetradic
#40517C #7C406F #7C6B40 #407C4D
square
#40517C #7C406F #7C6B40 #407C4D
split-complementary
#40517C #7C4D40 #6F7C40
monochromatic
#161C2B #2B3754 #40517C #556BA4 #7B8DBB

Accessibility & contrast

On white

7.82
#40517C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#40517C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40517C
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40517C#FFFFFF#000000##FFFFFF
##40517C1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41557E
Deuteranopia (green-blind)
#3B507B
Tritanopia (blue-blind)
#295A61
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #40517c;
/* rgb */ color: rgb(64, 81, 124);
/* oklch */ color: oklch(44.1% 0.074 266.9);
Tailwind
colors: {
  custom: {
    50: '#7881a2',
    500: '#40517c',
    950: '#000000',
  },
}
SCSS
$custom: #40517c;
$custom-light: #7881a2;
$custom-dark: #000000;
JSON
{
  "hex": "#40517c",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 124
  },
  "hsl": {
    "h": 223,
    "s": 31.915,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44051,
    "c": 0.0744,
    "h": 266.9
  },
  "luminance": 0.0843
}

Semantic roles & 50–950 ramp

primary
#40517C
secondary
#A69772
accent
#AB60C8
background
#F7F7FA
surface
#EDEEF3
border
#C8C9CD
text
#090A0F
muted
#7B7C7F

Preview Lab

Preview with #40517C

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

Preview Lab → · Contrast checker → · Palette generator →

#40517C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva