#40499C#40499C

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

Color values

HEX#40499C
RGBrgb(64, 73, 156)
HSLhsl(234, 42%, 43%)
HSVhsv(234, 59%, 61%)
CMYKcmyk(59%, 53.2%, 0%, 38.8%)
CIE-LABlab(34.51, 22.18, -46.56)
CIE-LCHlch(34.51, 51.57, 295.47°)
OKLaboklab(44.4% 0.0115 -0.1333)
OKLCHoklch(44.4% 0.134 274.9)
XYZxyz(10.4957, 8.2546, 32.4863)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40499C #9C9340
analogous
#40779C #40499C #65409C
triadic
#40499C #9C4049 #499C40
tetradic
#40499C #9C4077 #9C9340 #409C65
square
#40499C #9C4077 #9C9340 #409C65
split-complementary
#40499C #9C6540 #779C40
monochromatic
#1C2045 #2E3571 #40499C #5D66BC #888FCE

Accessibility & contrast

On white

7.92
#40499C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#40499C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40499C
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40499C#FFFFFF#000000##FFFFFF
##40499C1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19559F
Deuteranopia (green-blind)
#014D9A
Tritanopia (blue-blind)
#005C6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #40499c;
/* rgb */ color: rgb(64, 73, 156);
/* oklch */ color: oklch(44.4% 0.134 274.9);
Tailwind
colors: {
  custom: {
    50: '#7d7bba',
    500: '#40499c',
    950: '#000000',
  },
}
SCSS
$custom: #40499c;
$custom-light: #7d7bba;
$custom-dark: #000000;
JSON
{
  "hex": "#40499c",
  "rgb": {
    "r": 64,
    "g": 73,
    "b": 156
  },
  "hsl": {
    "h": 234.13,
    "s": 41.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.444,
    "c": 0.13377,
    "h": 274.9
  },
  "luminance": 0.08255
}

Semantic roles & 50–950 ramp

primary
#40499C
secondary
#B9B37F
accent
#C656D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #40499C

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

Preview Lab → · Contrast checker → · Palette generator →

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