#40549F#40549F

#40549F is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.9% C 0.123 H 269.9°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#40549F
RGBrgb(64, 84, 159)
HSLhsl(227, 43%, 44%)
HSVhsv(227, 60%, 62%)
CMYKcmyk(59.7%, 47.2%, 0%, 37.6%)
CIE-LABlab(37.72, 16.03, -43.20)
CIE-LCHlch(37.72, 46.08, 290.36°)
OKLaboklab(46.9% -0.0002 -0.1233)
OKLCHoklch(46.9% 0.123 269.9)
XYZxyz(11.5406, 9.9329, 34.1033)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40549F #9F8B40
analogous
#40839F #40549F #5B409F
triadic
#40549F #9F4054 #549F40
tetradic
#40549F #9F4083 #9F8B40 #409F5B
square
#40549F #9F4083 #9F8B40 #409F5B
split-complementary
#40549F #9F5B40 #839F40
monochromatic
#1D2648 #2E3D73 #40549F #5E72BE #8A98D0

Accessibility & contrast

On white

7.03
#40549F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#40549F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40549F
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40549F#FFFFFF#000000##FFFFFF
##40549F1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305DA2
Deuteranopia (green-blind)
#22559D
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #40549f;
/* rgb */ color: rgb(64, 84, 159);
/* oklch */ color: oklch(46.9% 0.123 269.9);
Tailwind
colors: {
  custom: {
    50: '#7d83bc',
    500: '#40549f',
    950: '#000000',
  },
}
SCSS
$custom: #40549f;
$custom-light: #7d83bc;
$custom-dark: #000000;
JSON
{
  "hex": "#40549f",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 159
  },
  "hsl": {
    "h": 227.368,
    "s": 42.601,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46898,
    "c": 0.12327,
    "h": 269.9
  },
  "luminance": 0.09934
}

Semantic roles & 50–950 ramp

primary
#40549F
secondary
#BBAE80
accent
#B855D2
background
#F8F8FB
surface
#EFEFF6
border
#CACAD0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #40549F

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

Preview Lab → · Contrast checker → · Palette generator →

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