#40549E#40549E

#40549E is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.8% C 0.122 H 269.8°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#40549E
RGBrgb(64, 84, 158)
HSLhsl(227, 42%, 44%)
HSVhsv(227, 59%, 62%)
CMYKcmyk(59.5%, 46.8%, 0%, 38%)
CIE-LABlab(37.66, 15.68, -42.70)
CIE-LCHlch(37.66, 45.49, 290.16°)
OKLaboklab(46.83% -0.0004 -0.1218)
OKLCHoklch(46.83% 0.122 269.8)
XYZxyz(11.4542, 9.8984, 33.6481)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40549E #9E8A40
analogous
#40839E #40549E #5B409E
triadic
#40549E #9E4054 #549E40
tetradic
#40549E #9E4083 #9E8A40 #409E5B
square
#40549E #9E4083 #9E8A40 #409E5B
split-complementary
#40549E #9E5B40 #839E40
monochromatic
#1D2647 #2E3D72 #40549E #5E72BE #8998CF

Accessibility & contrast

On white

7.05
#40549E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#40549E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40549E
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40549E#FFFFFF#000000##FFFFFF
##40549E1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315DA1
Deuteranopia (green-blind)
#23559C
Tritanopia (blue-blind)
#006571
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #40549e;
/* rgb */ color: rgb(64, 84, 158);
/* oklch */ color: oklch(46.8% 0.122 269.8);
Tailwind
colors: {
  custom: {
    50: '#7d83bb',
    500: '#40549e',
    950: '#000000',
  },
}
SCSS
$custom: #40549e;
$custom-light: #7d83bb;
$custom-dark: #000000;
JSON
{
  "hex": "#40549e",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 158
  },
  "hsl": {
    "h": 227.234,
    "s": 42.342,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4683,
    "c": 0.12181,
    "h": 269.8
  },
  "luminance": 0.09899
}

Semantic roles & 50–950 ramp

primary
#40549E
secondary
#BAAE80
accent
#B856D2
background
#F8F8FB
surface
#EFEFF6
border
#CACAD0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #40549E

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

Preview Lab → · Contrast checker → · Palette generator →

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