#40499A#40499A

#40499A is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.3% C 0.131 H 274.9°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#40499A
RGBrgb(64, 73, 154)
HSLhsl(234, 41%, 43%)
HSVhsv(234, 58%, 60%)
CMYKcmyk(58.4%, 52.6%, 0%, 39.6%)
CIE-LABlab(34.37, 21.48, -45.57)
CIE-LCHlch(34.37, 50.38, 295.24°)
OKLaboklab(44.25% 0.0113 -0.1304)
OKLCHoklch(44.25% 0.131 274.9)
XYZxyz(10.3277, 8.1874, 31.6017)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40499A #9A9140
analogous
#40769A #40499A #64409A
triadic
#40499A #9A4049 #499A40
tetradic
#40499A #9A4076 #9A9140 #409A64
square
#40499A #9A4076 #9A9140 #409A64
split-complementary
#40499A #9A6440 #769A40
monochromatic
#1C2044 #2E356F #40499A #5C65BB #878ECD

Accessibility & contrast

On white

7.96
#40499A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#40499A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40499A
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40499A#FFFFFF#000000##FFFFFF
##40499A1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C559D
Deuteranopia (green-blind)
#084D98
Tritanopia (blue-blind)
#055B6A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #40499a;
/* rgb */ color: rgb(64, 73, 154);
/* oklch */ color: oklch(44.3% 0.131 274.9);
Tailwind
colors: {
  custom: {
    50: '#7d7bb8',
    500: '#40499a',
    950: '#000000',
  },
}
SCSS
$custom: #40499a;
$custom-light: #7d7bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#40499a",
  "rgb": {
    "r": 64,
    "g": 73,
    "b": 154
  },
  "hsl": {
    "h": 234,
    "s": 41.284,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44253,
    "c": 0.13087,
    "h": 274.9
  },
  "luminance": 0.08188
}

Semantic roles & 50–950 ramp

primary
#40499A
secondary
#B8B27E
accent
#C557D1
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0911
muted
#7C7B80

Preview Lab

Preview with #40499A

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

Preview Lab → · Contrast checker → · Palette generator →

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