#40499B#40499B

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

Color values

HEX#40499B
RGBrgb(64, 73, 155)
HSLhsl(234, 42%, 43%)
HSVhsv(234, 59%, 61%)
CMYKcmyk(58.7%, 52.9%, 0%, 39.2%)
CIE-LABlab(34.44, 21.83, -46.07)
CIE-LCHlch(34.44, 50.98, 295.35°)
OKLaboklab(44.33% 0.0114 -0.1318)
OKLCHoklch(44.33% 0.132 274.9)
XYZxyz(10.4114, 8.2209, 32.0421)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40499B #9B9240
analogous
#40769B #40499B #64409B
triadic
#40499B #9B4049 #499B40
tetradic
#40499B #9B4076 #9B9240 #409B64
square
#40499B #9B4076 #9B9240 #409B64
split-complementary
#40499B #9B6440 #769B40
monochromatic
#1C2044 #2E3570 #40499B #5C66BC #888FCE

Accessibility & contrast

On white

7.94
#40499B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40499B
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40499B#FFFFFF#000000##FFFFFF
##40499B1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B559E
Deuteranopia (green-blind)
#054D99
Tritanopia (blue-blind)
#025C6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #40499b;
/* rgb */ color: rgb(64, 73, 155);
/* oklch */ color: oklch(44.3% 0.132 274.9);
Tailwind
colors: {
  custom: {
    50: '#7d7bb9',
    500: '#40499b',
    950: '#000000',
  },
}
SCSS
$custom: #40499b;
$custom-light: #7d7bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#40499b",
  "rgb": {
    "r": 64,
    "g": 73,
    "b": 155
  },
  "hsl": {
    "h": 234.066,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44327,
    "c": 0.13232,
    "h": 274.9
  },
  "luminance": 0.08222
}

Semantic roles & 50–950 ramp

primary
#40499B
secondary
#B8B37E
accent
#C556D1
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0911
muted
#7C7B80

Preview Lab

Preview with #40499B

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

Preview Lab → · Contrast checker → · Palette generator →

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