#40487E#40487E

#40487E is a dark, moderate blue. Relative luminance 0.072; OKLCH L 42.1% C 0.090 H 275.5°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#40487E
RGBrgb(64, 72, 126)
HSLhsl(232, 33%, 37%)
HSVhsv(232, 49%, 49%)
CMYKcmyk(49.2%, 42.9%, 0%, 50.6%)
CIE-LABlab(32.33, 12.60, -31.68)
CIE-LCHlch(32.33, 34.09, 291.69°)
OKLaboklab(42.13% 0.0086 -0.0896)
OKLCHoklch(42.13% 0.09 275.5)
XYZxyz(8.1964, 7.2306, 20.6984)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40487E #7E7640
analogous
#40677E #40487E #57407E
triadic
#40487E #7E4048 #487E40
tetradic
#40487E #7E4067 #7E7640 #407E57
square
#40487E #7E4067 #7E7640 #407E57
split-complementary
#40487E #7E5740 #677E40
monochromatic
#171A2D #2B3155 #40487E #555FA7 #7C84BC

Accessibility & contrast

On white

8.58
#40487E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#40487E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40487E
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40487E#FFFFFF#000000##FFFFFF
##40487E1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334F80
Deuteranopia (green-blind)
#2E4A7D
Tritanopia (blue-blind)
#29535D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40487e;
/* rgb */ color: rgb(64, 72, 126);
/* oklch */ color: oklch(42.1% 0.090 275.5);
Tailwind
colors: {
  custom: {
    50: '#797aa4',
    500: '#40487e',
    950: '#000000',
  },
}
SCSS
$custom: #40487e;
$custom-light: #797aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#40487e",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 126
  },
  "hsl": {
    "h": 232.258,
    "s": 32.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42132,
    "c": 0.09001,
    "h": 275.5
  },
  "luminance": 0.07231
}

Semantic roles & 50–950 ramp

primary
#40487E
secondary
#A7A073
accent
#BB5FC9
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09090F
muted
#7B7B7F

Preview Lab

Preview with #40487E

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

Preview Lab → · Contrast checker → · Palette generator →

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