#40419E#40419E

#40419E is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.147 H 277.7°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#40419E
RGBrgb(64, 65, 158)
HSLhsl(239, 42%, 44%)
HSVhsv(239, 59%, 62%)
CMYKcmyk(59.5%, 58.9%, 0%, 38%)
CIE-LABlab(32.57, 28.07, -50.91)
CIE-LCHlch(32.57, 58.14, 298.87°)
OKLaboklab(43% 0.0199 -0.1461)
OKLCHoklch(43% 0.148 277.7)
XYZxyz(10.1742, 7.3385, 33.2214)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40419E #9E9D40
analogous
#40709E #40419E #6E409E
triadic
#40419E #9E4041 #419E40
tetradic
#40419E #9E4070 #9E9D40 #409E6E
square
#40419E #9E4070 #9E9D40 #409E6E
split-complementary
#40419E #9E6E40 #709E40
monochromatic
#1D1D47 #2E2F72 #40419E #5E5FBE #898ACF

Accessibility & contrast

On white

8.51
#40419E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40419E
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40419E#FFFFFF#000000##FFFFFF
##40419E1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40419e;
/* rgb */ color: rgb(64, 65, 158);
/* oklch */ color: oklch(43.0% 0.147 277.7);
Tailwind
colors: {
  custom: {
    50: '#7e75bb',
    500: '#40419e',
    950: '#000000',
  },
}
SCSS
$custom: #40419e;
$custom-light: #7e75bb;
$custom-dark: #000000;
JSON
{
  "hex": "#40419e",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 158
  },
  "hsl": {
    "h": 239.362,
    "s": 42.342,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42996,
    "c": 0.1475,
    "h": 277.7
  },
  "luminance": 0.07339
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40419E

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

Preview Lab → · Contrast checker → · Palette generator →

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