#40429D#40429D

#40429D is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.1% C 0.145 H 277.5°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#40429D
RGBrgb(64, 66, 157)
HSLhsl(239, 42%, 43%)
HSVhsv(239, 59%, 62%)
CMYKcmyk(59.2%, 58%, 0%, 38.4%)
CIE-LABlab(32.74, 27.08, -50.01)
CIE-LCHlch(32.74, 56.88, 298.44°)
OKLaboklab(43.11% 0.0189 -0.1435)
OKLCHoklch(43.11% 0.145 277.5)
XYZxyz(10.1464, 7.4200, 32.7893)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40429D #9D9B40
analogous
#40709D #40429D #6C409D
triadic
#40429D #9D4042 #429D40
tetradic
#40429D #9D4070 #9D9B40 #409D6C
square
#40429D #9D4070 #9D9B40 #409D6C
split-complementary
#40429D #9D6C40 #709D40
monochromatic
#1D1D46 #2E3072 #40429D #5D5FBD #898ACF

Accessibility & contrast

On white

8.45
#40429D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#40429D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40429D
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40429D#FFFFFF#000000##FFFFFF
##40429D1.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#00499B
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #40429d;
/* rgb */ color: rgb(64, 66, 157);
/* oklch */ color: oklch(43.1% 0.145 277.5);
Tailwind
colors: {
  custom: {
    50: '#7e76bb',
    500: '#40429d',
    950: '#000000',
  },
}
SCSS
$custom: #40429d;
$custom-light: #7e76bb;
$custom-dark: #000000;
JSON
{
  "hex": "#40429d",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 157
  },
  "hsl": {
    "h": 238.71,
    "s": 42.081,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43106,
    "c": 0.14475,
    "h": 277.5
  },
  "luminance": 0.07421
}

Semantic roles & 50–950 ramp

primary
#40429D
secondary
#B9B87F
accent
#CF56D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #40429D

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

Preview Lab → · Contrast checker → · Palette generator →

#40429D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva