#40487A#40487A

#40487A is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.9% C 0.084 H 275.3°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#40487A
RGBrgb(64, 72, 122)
HSLhsl(232, 31%, 36%)
HSVhsv(232, 48%, 48%)
CMYKcmyk(47.5%, 41%, 0%, 52.2%)
CIE-LABlab(32.10, 11.28, -29.54)
CIE-LCHlch(32.10, 31.62, 290.90°)
OKLaboklab(41.89% 0.0077 -0.0834)
OKLCHoklch(41.89% 0.084 275.3)
XYZxyz(7.9435, 7.1294, 19.3661)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40487A #7A7240
analogous
#40657A #40487A #55407A
triadic
#40487A #7A4048 #487A40
tetradic
#40487A #7A4065 #7A7240 #407A55
square
#40487A #7A4065 #7A7240 #407A55
split-complementary
#40487A #7A5540 #657A40
monochromatic
#16192A #2B3052 #40487A #5560A2 #7B83BA

Accessibility & contrast

On white

8.66
#40487A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#40487A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40487A
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40487A#FFFFFF#000000##FFFFFF
##40487A1.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354E7C
Deuteranopia (green-blind)
#314979
Tritanopia (blue-blind)
#2B525B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #40487a;
/* rgb */ color: rgb(64, 72, 122);
/* oklch */ color: oklch(41.9% 0.084 275.3);
Tailwind
colors: {
  custom: {
    50: '#787aa1',
    500: '#40487a',
    950: '#000000',
  },
}
SCSS
$custom: #40487a;
$custom-light: #787aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#40487a",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 122
  },
  "hsl": {
    "h": 231.724,
    "s": 31.183,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41885,
    "c": 0.08373,
    "h": 275.3
  },
  "luminance": 0.0713
}

Semantic roles & 50–950 ramp

primary
#40487A
secondary
#A49D72
accent
#B960C7
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09090F
muted
#7B7B7E

Preview Lab

Preview with #40487A

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

Preview Lab → · Contrast checker → · Palette generator →

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