#40419D#40419D

#40419D is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.146 H 277.8°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#40419D
RGBrgb(64, 65, 157)
HSLhsl(239, 42%, 43%)
HSVhsv(239, 59%, 62%)
CMYKcmyk(59.2%, 58.6%, 0%, 38.4%)
CIE-LABlab(32.49, 27.73, -50.43)
CIE-LCHlch(32.49, 57.55, 298.81°)
OKLaboklab(42.92% 0.0199 -0.1447)
OKLCHoklch(42.92% 0.146 277.8)
XYZxyz(10.0885, 7.3042, 32.7700)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40419D #9D9C40
analogous
#406F9D #40419D #6D409D
triadic
#40419D #9D4041 #419D40
tetradic
#40419D #9D406F #9D9C40 #409D6D
square
#40419D #9D406F #9D9C40 #409D6D
split-complementary
#40419D #9D6D40 #6F9D40
monochromatic
#1D1D46 #2E2F72 #40419D #5D5EBD #8989CF

Accessibility & contrast

On white

8.53
#40419D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#40419D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40419D
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40419D#FFFFFF#000000##FFFFFF
##40419D1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#00499B
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40419d;
/* rgb */ color: rgb(64, 65, 157);
/* oklch */ color: oklch(42.9% 0.146 277.8);
Tailwind
colors: {
  custom: {
    50: '#7e75bb',
    500: '#40419d',
    950: '#000000',
  },
}
SCSS
$custom: #40419d;
$custom-light: #7e75bb;
$custom-dark: #000000;
JSON
{
  "hex": "#40419d",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 157
  },
  "hsl": {
    "h": 239.355,
    "s": 42.081,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42916,
    "c": 0.1461,
    "h": 277.8
  },
  "luminance": 0.07305
}

Semantic roles & 50–950 ramp

primary
#40419D
secondary
#B9B97F
accent
#D156D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #40419D

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

Preview Lab → · Contrast checker → · Palette generator →

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