#40487D#40487D

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

Color values

HEX#40487D
RGBrgb(64, 72, 125)
HSLhsl(232, 32%, 37%)
HSVhsv(232, 49%, 49%)
CMYKcmyk(48.8%, 42.4%, 0%, 51%)
CIE-LABlab(32.27, 12.27, -31.15)
CIE-LCHlch(32.27, 33.47, 291.50°)
OKLaboklab(42.07% 0.0084 -0.088)
OKLCHoklch(42.07% 0.088 275.4)
XYZxyz(8.1322, 7.2049, 20.3602)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40487D #7D7540
analogous
#40677D #40487D #57407D
triadic
#40487D #7D4048 #487D40
tetradic
#40487D #7D4067 #7D7540 #407D57
square
#40487D #7D4067 #7D7540 #407D57
split-complementary
#40487D #7D5740 #677D40
monochromatic
#17192C #2B3155 #40487D #555FA5 #7C84BC

Accessibility & contrast

On white

8.60
#40487D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#40487D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40487D
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40487D#FFFFFF#000000##FFFFFF
##40487D1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344E7F
Deuteranopia (green-blind)
#2E4A7C
Tritanopia (blue-blind)
#2A535C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40487d;
/* rgb */ color: rgb(64, 72, 125);
/* oklch */ color: oklch(42.1% 0.088 275.4);
Tailwind
colors: {
  custom: {
    50: '#797aa3',
    500: '#40487d',
    950: '#000000',
  },
}
SCSS
$custom: #40487d;
$custom-light: #797aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#40487d",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 125
  },
  "hsl": {
    "h": 232.131,
    "s": 32.275,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4207,
    "c": 0.08845,
    "h": 275.4
  },
  "luminance": 0.07205
}

Semantic roles & 50–950 ramp

primary
#40487D
secondary
#A6A073
accent
#BB5FC8
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#09090F
muted
#7B7B7F

Preview Lab

Preview with #40487D

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

Preview Lab → · Contrast checker → · Palette generator →

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