#40487C#40487C

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

Color values

HEX#40487C
RGBrgb(64, 72, 124)
HSLhsl(232, 32%, 37%)
HSVhsv(232, 48%, 49%)
CMYKcmyk(48.4%, 41.9%, 0%, 51.4%)
CIE-LABlab(32.21, 11.94, -30.61)
CIE-LCHlch(32.21, 32.86, 291.30°)
OKLaboklab(42.01% 0.0082 -0.0865)
OKLCHoklch(42.01% 0.087 275.4)
XYZxyz(8.0687, 7.1795, 20.0255)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40487C #7C7440
analogous
#40667C #40487C #56407C
triadic
#40487C #7C4048 #487C40
tetradic
#40487C #7C4066 #7C7440 #407C56
square
#40487C #7C4066 #7C7440 #407C56
split-complementary
#40487C #7C5640 #667C40
monochromatic
#16192B #2B3154 #40487C #555FA4 #7B84BB

Accessibility & contrast

On white

8.62
#40487C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40487C
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40487C#FFFFFF#000000##FFFFFF
##40487C1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40487c;
/* rgb */ color: rgb(64, 72, 124);
/* oklch */ color: oklch(42.0% 0.087 275.4);
Tailwind
colors: {
  custom: {
    50: '#787aa2',
    500: '#40487c',
    950: '#000000',
  },
}
SCSS
$custom: #40487c;
$custom-light: #787aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#40487c",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 124
  },
  "hsl": {
    "h": 232,
    "s": 31.915,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42008,
    "c": 0.08688,
    "h": 275.4
  },
  "luminance": 0.0718
}

Semantic roles & 50–950 ramp

primary
#40487C
secondary
#A69F72
accent
#BA60C8
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#09090F
muted
#7B7B7F

Preview Lab

Preview with #40487C

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

Preview Lab → · Contrast checker → · Palette generator →

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