#40507A#40507A

#40507A is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.7% C 0.073 H 267.5°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#40507A
RGBrgb(64, 80, 122)
HSLhsl(223, 31%, 36%)
HSVhsv(223, 48%, 48%)
CMYKcmyk(47.5%, 34.4%, 0%, 52.2%)
CIE-LABlab(34.46, 6.04, -25.83)
CIE-LCHlch(34.46, 26.52, 283.17°)
OKLaboklab(43.71% -0.0032 -0.0725)
OKLCHoklch(43.71% 0.073 267.5)
XYZxyz(8.4947, 8.2320, 19.5499)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40507A #7A6A40
analogous
#406D7A #40507A #4D407A
triadic
#40507A #7A4050 #507A40
tetradic
#40507A #7A406D #7A6A40 #407A4D
square
#40507A #7A406D #7A6A40 #407A4D
split-complementary
#40507A #7A4D40 #6D7A40
monochromatic
#161B2A #2B3652 #40507A #556AA2 #7B8CBA

Accessibility & contrast

On white

7.94
#40507A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#40507A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40507A
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40507A#FFFFFF#000000##FFFFFF
##40507A1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41547C
Deuteranopia (green-blind)
#3B4F79
Tritanopia (blue-blind)
#2A595F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #40507a;
/* rgb */ color: rgb(64, 80, 122);
/* oklch */ color: oklch(43.7% 0.073 267.5);
Tailwind
colors: {
  custom: {
    50: '#7880a0',
    500: '#40507a',
    950: '#000000',
  },
}
SCSS
$custom: #40507a;
$custom-light: #7880a0;
$custom-dark: #000000;
JSON
{
  "hex": "#40507a",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 122
  },
  "hsl": {
    "h": 223.448,
    "s": 31.183,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43707,
    "c": 0.07259,
    "h": 267.5
  },
  "luminance": 0.08232
}

Semantic roles & 50–950 ramp

primary
#40507A
secondary
#A49672
accent
#AB60C7
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#090A0F
muted
#7B7C7E

Preview Lab

Preview with #40507A

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

Preview Lab → · Contrast checker → · Palette generator →

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