#40419A#40419A

#40419A is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.142 H 278.1°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#40419A
RGBrgb(64, 65, 154)
HSLhsl(239, 41%, 43%)
HSVhsv(239, 58%, 60%)
CMYKcmyk(58.4%, 57.8%, 0%, 39.6%)
CIE-LABlab(32.26, 26.70, -48.97)
CIE-LCHlch(32.26, 55.78, 298.60°)
OKLaboklab(42.68% 0.0199 -0.1405)
OKLCHoklch(42.68% 0.142 278.1)
XYZxyz(9.8355, 7.2030, 31.4376)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40419A #9A9940
analogous
#406E9A #40419A #6C409A
triadic
#40419A #9A4041 #419A40
tetradic
#40419A #9A406E #9A9940 #409A6C
square
#40419A #9A406E #9A9940 #409A6C
split-complementary
#40419A #9A6C40 #6E9A40
monochromatic
#1C1D44 #2E2F6F #40419A #5C5DBB #8788CD

Accessibility & contrast

On white

8.60
#40419A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#40419A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40419A
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40419A#FFFFFF#000000##FFFFFF
##40419A1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509D
Deuteranopia (green-blind)
#004898
Tritanopia (blue-blind)
#085667
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40419a;
/* rgb */ color: rgb(64, 65, 154);
/* oklch */ color: oklch(42.7% 0.142 278.1);
Tailwind
colors: {
  custom: {
    50: '#7d75b8',
    500: '#40419a',
    950: '#000000',
  },
}
SCSS
$custom: #40419a;
$custom-light: #7d75b8;
$custom-dark: #000000;
JSON
{
  "hex": "#40419a",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 154
  },
  "hsl": {
    "h": 239.333,
    "s": 41.284,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42678,
    "c": 0.14186,
    "h": 278.1
  },
  "luminance": 0.07204
}

Semantic roles & 50–950 ramp

primary
#40419A
secondary
#B8B77E
accent
#D057D1
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #40419A

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

Preview Lab → · Contrast checker → · Palette generator →

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