#40518F#40518F

#40518F is a mid, moderate blue. Relative luminance 0.090; OKLCH L 45.2% C 0.103 H 270.3°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#40518F
RGBrgb(64, 81, 143)
HSLhsl(227, 38%, 41%)
HSVhsv(227, 55%, 56%)
CMYKcmyk(55.2%, 43.4%, 0%, 43.9%)
CIE-LABlab(35.90, 12.43, -36.45)
CIE-LCHlch(35.90, 38.51, 288.83°)
OKLaboklab(45.19% 0.0005 -0.1035)
OKLCHoklch(45.19% 0.103 270.3)
XYZxyz(10.0131, 8.9573, 27.1826)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40518F #8F7E40
analogous
#40788F #40518F #57408F
triadic
#40518F #8F4051 #518F40
tetradic
#40518F #8F4078 #8F7E40 #408F57
square
#40518F #8F4078 #8F7E40 #408F57
split-complementary
#40518F #8F5740 #788F40
monochromatic
#1A213A #2D3965 #40518F #586CB4 #8291C7

Accessibility & contrast

On white

7.52
#40518F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#40518F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40518F
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40518F#FFFFFF#000000##FFFFFF
##40518F1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375891
Deuteranopia (green-blind)
#2E518E
Tritanopia (blue-blind)
#185E69
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #40518f;
/* rgb */ color: rgb(64, 81, 143);
/* oklch */ color: oklch(45.2% 0.103 270.3);
Tailwind
colors: {
  custom: {
    50: '#7b81b0',
    500: '#40518f',
    950: '#000000',
  },
}
SCSS
$custom: #40518f;
$custom-light: #7b81b0;
$custom-dark: #000000;
JSON
{
  "hex": "#40518f",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 143
  },
  "hsl": {
    "h": 227.089,
    "s": 38.164,
    "l": 40.588
  },
  "oklch": {
    "l": 0.45193,
    "c": 0.10349,
    "h": 270.3
  },
  "luminance": 0.08958
}

Semantic roles & 50–950 ramp

primary
#40518F
secondary
#B2A579
accent
#B55ACE
background
#F7F7FA
surface
#EEEEF5
border
#C9C9CF
text
#0A0A10
muted
#7C7C7F

Preview Lab

Preview with #40518F

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

Preview Lab → · Contrast checker → · Palette generator →

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