#40499F#40499F

#40499F is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.6% C 0.138 H 274.8°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#40499F
RGBrgb(64, 73, 159)
HSLhsl(234, 43%, 44%)
HSVhsv(234, 60%, 62%)
CMYKcmyk(59.7%, 54.1%, 0%, 37.6%)
CIE-LABlab(34.72, 23.22, -48.03)
CIE-LCHlch(34.72, 53.35, 295.80°)
OKLaboklab(44.62% 0.0117 -0.1376)
OKLCHoklch(44.62% 0.138 274.8)
XYZxyz(10.7529, 8.3575, 33.8407)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40499F #9F9640
analogous
#40789F #40499F #66409F
triadic
#40499F #9F4049 #499F40
tetradic
#40499F #9F4078 #9F9640 #409F66
square
#40499F #9F4078 #9F9640 #409F66
split-complementary
#40499F #9F6640 #789F40
monochromatic
#1D2148 #2E3573 #40499F #5E67BE #8A90D0

Accessibility & contrast

On white

7.86
#40499F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#40499F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40499F
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40499F#FFFFFF#000000##FFFFFF
##40499F1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1456A2
Deuteranopia (green-blind)
#004E9D
Tritanopia (blue-blind)
#005D6D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #40499f;
/* rgb */ color: rgb(64, 73, 159);
/* oklch */ color: oklch(44.6% 0.138 274.8);
Tailwind
colors: {
  custom: {
    50: '#7e7bbc',
    500: '#40499f',
    950: '#000000',
  },
}
SCSS
$custom: #40499f;
$custom-light: #7e7bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#40499f",
  "rgb": {
    "r": 64,
    "g": 73,
    "b": 159
  },
  "hsl": {
    "h": 234.316,
    "s": 42.601,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44624,
    "c": 0.1381,
    "h": 274.8
  },
  "luminance": 0.08358
}

Semantic roles & 50–950 ramp

primary
#40499F
secondary
#BBB580
accent
#C755D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #40499F

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

Preview Lab → · Contrast checker → · Palette generator →

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