#40419F#40419F

#40419F is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.1% C 0.149 H 277.7°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#40419F
RGBrgb(64, 65, 159)
HSLhsl(239, 43%, 44%)
HSVhsv(239, 60%, 62%)
CMYKcmyk(59.7%, 59.1%, 0%, 37.6%)
CIE-LABlab(32.64, 28.42, -51.39)
CIE-LCHlch(32.64, 58.72, 298.94°)
OKLaboklab(43.08% 0.0199 -0.1476)
OKLCHoklch(43.08% 0.149 277.7)
XYZxyz(10.2607, 7.3730, 33.6766)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40419F #9F9E40
analogous
#40709F #40419F #6E409F
triadic
#40419F #9F4041 #419F40
tetradic
#40419F #9F4070 #9F9E40 #409F6E
square
#40419F #9F4070 #9F9E40 #409F6E
split-complementary
#40419F #9F6E40 #709F40
monochromatic
#1D1D48 #2E2F73 #40419F #5E5FBE #8A8AD0

Accessibility & contrast

On white

8.49
#40419F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#40419F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40419F
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40419F#FFFFFF#000000##FFFFFF
##40419F1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #40419f;
/* rgb */ color: rgb(64, 65, 159);
/* oklch */ color: oklch(43.1% 0.149 277.7);
Tailwind
colors: {
  custom: {
    50: '#7e75bc',
    500: '#40419f',
    950: '#000000',
  },
}
SCSS
$custom: #40419f;
$custom-light: #7e75bc;
$custom-dark: #000000;
JSON
{
  "hex": "#40419f",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 159
  },
  "hsl": {
    "h": 239.368,
    "s": 42.601,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43077,
    "c": 0.1489,
    "h": 277.7
  },
  "luminance": 0.07374
}

Semantic roles & 50–950 ramp

primary
#40419F
secondary
#BBBA80
accent
#D155D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #40419F

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

Preview Lab → · Contrast checker → · Palette generator →

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