#40499E#40499E

#40499E is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.5% C 0.137 H 274.9°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#40499E
RGBrgb(64, 73, 158)
HSLhsl(234, 42%, 44%)
HSVhsv(234, 59%, 62%)
CMYKcmyk(59.5%, 53.8%, 0%, 38%)
CIE-LABlab(34.65, 22.87, -47.54)
CIE-LCHlch(34.65, 52.76, 295.69°)
OKLaboklab(44.55% 0.0116 -0.1362)
OKLCHoklch(44.55% 0.137 274.9)
XYZxyz(10.6664, 8.3229, 33.3855)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40499E #9E9540
analogous
#40789E #40499E #66409E
triadic
#40499E #9E4049 #499E40
tetradic
#40499E #9E4078 #9E9540 #409E66
square
#40499E #9E4078 #9E9540 #409E66
split-complementary
#40499E #9E6640 #789E40
monochromatic
#1D2147 #2E3572 #40499E #5E67BE #8990CF

Accessibility & contrast

On white

7.88
#40499E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#40499E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40499E
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40499E#FFFFFF#000000##FFFFFF
##40499E1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1656A1
Deuteranopia (green-blind)
#004E9C
Tritanopia (blue-blind)
#005D6C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #40499e;
/* rgb */ color: rgb(64, 73, 158);
/* oklch */ color: oklch(44.5% 0.137 274.9);
Tailwind
colors: {
  custom: {
    50: '#7e7bbb',
    500: '#40499e',
    950: '#000000',
  },
}
SCSS
$custom: #40499e;
$custom-light: #7e7bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#40499e",
  "rgb": {
    "r": 64,
    "g": 73,
    "b": 158
  },
  "hsl": {
    "h": 234.255,
    "s": 42.342,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44549,
    "c": 0.13666,
    "h": 274.9
  },
  "luminance": 0.08324
}

Semantic roles & 50–950 ramp

primary
#40499E
secondary
#BAB480
accent
#C656D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #40499E

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

Preview Lab → · Contrast checker → · Palette generator →

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