#40487F#40487F

#40487F is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.2% C 0.092 H 275.5°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#40487F
RGBrgb(64, 72, 127)
HSLhsl(232, 33%, 37%)
HSVhsv(232, 50%, 50%)
CMYKcmyk(49.6%, 43.3%, 0%, 50.2%)
CIE-LABlab(32.38, 12.93, -32.21)
CIE-LCHlch(32.38, 34.70, 291.88°)
OKLaboklab(42.2% 0.0088 -0.0911)
OKLCHoklch(42.2% 0.092 275.5)
XYZxyz(8.2613, 7.2566, 21.0399)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40487F #7F7740
analogous
#40677F #40487F #58407F
triadic
#40487F #7F4048 #487F40
tetradic
#40487F #7F4067 #7F7740 #407F58
square
#40487F #7F4067 #7F7740 #407F58
split-complementary
#40487F #7F5840 #677F40
monochromatic
#171A2E #2B3156 #40487F #555FA8 #7C85BD

Accessibility & contrast

On white

8.57
#40487F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40487F
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40487F#FFFFFF#000000##FFFFFF
##40487F1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334F81
Deuteranopia (green-blind)
#2D4A7E
Tritanopia (blue-blind)
#28545D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40487f;
/* rgb */ color: rgb(64, 72, 127);
/* oklch */ color: oklch(42.2% 0.092 275.5);
Tailwind
colors: {
  custom: {
    50: '#797aa4',
    500: '#40487f',
    950: '#000000',
  },
}
SCSS
$custom: #40487f;
$custom-light: #797aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#40487f",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 127
  },
  "hsl": {
    "h": 232.381,
    "s": 32.984,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42195,
    "c": 0.09157,
    "h": 275.5
  },
  "luminance": 0.07257
}

Semantic roles & 50–950 ramp

primary
#40487F
secondary
#A8A173
accent
#BC5FC9
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09090F
muted
#7B7B7F

Preview Lab

Preview with #40487F

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

Preview Lab → · Contrast checker → · Palette generator →

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