#40428F#40428F

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

Color values

HEX#40428F
RGBrgb(64, 66, 143)
HSLhsl(238, 38%, 41%)
HSVhsv(238, 55%, 56%)
CMYKcmyk(55.2%, 53.8%, 0%, 43.9%)
CIE-LABlab(31.74, 22.30, -43.12)
CIE-LCHlch(31.74, 48.54, 297.35°)
OKLaboklab(42.03% 0.0184 -0.1232)
OKLCHoklch(42.03% 0.125 278.5)
XYZxyz(9.0189, 6.9690, 26.8512)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40428F #8F8D40
analogous
#40698F #40428F #65408F
triadic
#40428F #8F4042 #428F40
tetradic
#40428F #8F4069 #8F8D40 #408F65
square
#40428F #8F4069 #8F8D40 #408F65
split-complementary
#40428F #8F6540 #698F40
monochromatic
#1A1B3A #2D2E65 #40428F #585AB4 #8284C7

Accessibility & contrast

On white

8.77
#40428F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40428F
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40428F#FFFFFF#000000##FFFFFF
##40428F1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184E92
Deuteranopia (green-blind)
#0A488D
Tritanopia (blue-blind)
#1B5362
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #40428f;
/* rgb */ color: rgb(64, 66, 143);
/* oklch */ color: oklch(42.0% 0.125 278.5);
Tailwind
colors: {
  custom: {
    50: '#7c76b0',
    500: '#40428f',
    950: '#000000',
  },
}
SCSS
$custom: #40428f;
$custom-light: #7c76b0;
$custom-dark: #000000;
JSON
{
  "hex": "#40428f",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 143
  },
  "hsl": {
    "h": 238.481,
    "s": 38.164,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42033,
    "c": 0.12458,
    "h": 278.5
  },
  "luminance": 0.0697
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40428F

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

Preview Lab → · Contrast checker → · Palette generator →

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