#40487B#40487B

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

Color values

HEX#40487B
RGBrgb(64, 72, 123)
HSLhsl(232, 32%, 37%)
HSVhsv(232, 48%, 48%)
CMYKcmyk(48%, 41.5%, 0%, 51.8%)
CIE-LABlab(32.16, 11.61, -30.08)
CIE-LCHlch(32.16, 32.24, 291.10°)
OKLaboklab(41.95% 0.008 -0.0849)
OKLCHoklch(41.95% 0.085 275.4)
XYZxyz(8.0058, 7.1543, 19.6941)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40487B #7B7340
analogous
#40667B #40487B #56407B
triadic
#40487B #7B4048 #487B40
tetradic
#40487B #7B4066 #7B7340 #407B56
square
#40487B #7B4066 #7B7340 #407B56
split-complementary
#40487B #7B5640 #667B40
monochromatic
#16192A #2B3053 #40487B #5560A3 #7B84BA

Accessibility & contrast

On white

8.64
#40487B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40487B
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40487B#FFFFFF#000000##FFFFFF
##40487B1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354E7D
Deuteranopia (green-blind)
#30497A
Tritanopia (blue-blind)
#2B535B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40487b;
/* rgb */ color: rgb(64, 72, 123);
/* oklch */ color: oklch(41.9% 0.085 275.4);
Tailwind
colors: {
  custom: {
    50: '#787aa1',
    500: '#40487b',
    950: '#000000',
  },
}
SCSS
$custom: #40487b;
$custom-light: #787aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#40487b",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 123
  },
  "hsl": {
    "h": 231.864,
    "s": 31.551,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41946,
    "c": 0.0853,
    "h": 275.4
  },
  "luminance": 0.07155
}

Semantic roles & 50–950 ramp

primary
#40487B
secondary
#A59E72
accent
#BA60C8
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09090F
muted
#7B7B7E

Preview Lab

Preview with #40487B

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

Preview Lab → · Contrast checker → · Palette generator →

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