#40429B#40429B

#40429B is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.9% C 0.142 H 277.6°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#40429B
RGBrgb(64, 66, 155)
HSLhsl(239, 42%, 43%)
HSVhsv(239, 59%, 61%)
CMYKcmyk(58.7%, 57.4%, 0%, 39.2%)
CIE-LABlab(32.60, 26.40, -49.04)
CIE-LCHlch(32.60, 55.70, 298.29°)
OKLaboklab(42.95% 0.0188 -0.1407)
OKLCHoklch(42.95% 0.142 277.6)
XYZxyz(9.9771, 7.3523, 31.8974)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40429B #9B9940
analogous
#40709B #40429B #6B409B
triadic
#40429B #9B4042 #429B40
tetradic
#40429B #9B4070 #9B9940 #409B6B
square
#40429B #9B4070 #9B9940 #409B6B
split-complementary
#40429B #9B6B40 #709B40
monochromatic
#1C1D44 #2E3070 #40429B #5C5EBC #8889CE

Accessibility & contrast

On white

8.50
#40429B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#40429B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40429B
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40429B#FFFFFF#000000##FFFFFF
##40429B1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509E
Deuteranopia (green-blind)
#004999
Tritanopia (blue-blind)
#055768
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #40429b;
/* rgb */ color: rgb(64, 66, 155);
/* oklch */ color: oklch(42.9% 0.142 277.6);
Tailwind
colors: {
  custom: {
    50: '#7e76b9',
    500: '#40429b',
    950: '#000000',
  },
}
SCSS
$custom: #40429b;
$custom-light: #7e76b9;
$custom-dark: #000000;
JSON
{
  "hex": "#40429b",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 155
  },
  "hsl": {
    "h": 238.681,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42948,
    "c": 0.14192,
    "h": 277.6
  },
  "luminance": 0.07353
}

Semantic roles & 50–950 ramp

primary
#40429B
secondary
#B8B77E
accent
#CF56D1
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0811
muted
#7C7B80

Preview Lab

Preview with #40429B

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

Preview Lab → · Contrast checker → · Palette generator →

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