#40428E#40428E

#40428E is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.123 H 278.5°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#40428E
RGBrgb(64, 66, 142)
HSLhsl(238, 38%, 40%)
HSVhsv(238, 55%, 56%)
CMYKcmyk(54.9%, 53.5%, 0%, 44.3%)
CIE-LABlab(31.67, 21.96, -42.61)
CIE-LCHlch(31.67, 47.94, 297.26°)
OKLaboklab(41.96% 0.0183 -0.1217)
OKLCHoklch(41.96% 0.123 278.5)
XYZxyz(8.9435, 6.9388, 26.4540)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40428E #8E8C40
analogous
#40698E #40428E #65408E
triadic
#40428E #8E4042 #428E40
tetradic
#40428E #8E4069 #8E8C40 #408E65
square
#40428E #8E4069 #8E8C40 #408E65
split-complementary
#40428E #8E6540 #698E40
monochromatic
#1A1B3A #2D2E64 #40428E #585AB4 #8284C7

Accessibility & contrast

On white

8.79
#40428E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#40428E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40428E
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40428E#FFFFFF#000000##FFFFFF
##40428E1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194E91
Deuteranopia (green-blind)
#0D478C
Tritanopia (blue-blind)
#1C5361
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #40428e;
/* rgb */ color: rgb(64, 66, 142);
/* oklch */ color: oklch(42.0% 0.123 278.5);
Tailwind
colors: {
  custom: {
    50: '#7b76b0',
    500: '#40428e',
    950: '#000000',
  },
}
SCSS
$custom: #40428e;
$custom-light: #7b76b0;
$custom-dark: #000000;
JSON
{
  "hex": "#40428e",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 142
  },
  "hsl": {
    "h": 238.462,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41959,
    "c": 0.1231,
    "h": 278.5
  },
  "luminance": 0.06939
}

Semantic roles & 50–950 ramp

primary
#40428E
secondary
#B1B079
accent
#CB5ACE
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #40428E

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

Preview Lab → · Contrast checker → · Palette generator →

#40428E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva