#40549A#40549A

#40549A is a mid, moderate blue. Relative luminance 0.098; OKLCH L 46.6% C 0.116 H 269.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#40549A
RGBrgb(64, 84, 154)
HSLhsl(227, 41%, 43%)
HSVhsv(227, 58%, 60%)
CMYKcmyk(58.4%, 45.5%, 0%, 39.6%)
CIE-LABlab(37.41, 14.28, -40.69)
CIE-LCHlch(37.41, 43.12, 289.34°)
OKLaboklab(46.56% -0.001 -0.1159)
OKLCHoklch(46.56% 0.116 269.5)
XYZxyz(11.1155, 9.7629, 31.8643)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40549A #9A8640
analogous
#40819A #40549A #59409A
triadic
#40549A #9A4054 #549A40
tetradic
#40549A #9A4081 #9A8640 #409A59
square
#40549A #9A4081 #9A8640 #409A59
split-complementary
#40549A #9A5940 #819A40
monochromatic
#1C2544 #2E3C6F #40549A #5C71BB #8797CD

Accessibility & contrast

On white

7.11
#40549A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#40549A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40549A
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40549A#FFFFFF#000000##FFFFFF
##40549A1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345C9D
Deuteranopia (green-blind)
#285499
Tritanopia (blue-blind)
#00646F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #40549a;
/* rgb */ color: rgb(64, 84, 154);
/* oklch */ color: oklch(46.6% 0.116 269.5);
Tailwind
colors: {
  custom: {
    50: '#7c83b8',
    500: '#40549a',
    950: '#000000',
  },
}
SCSS
$custom: #40549a;
$custom-light: #7c83b8;
$custom-dark: #000000;
JSON
{
  "hex": "#40549a",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 154
  },
  "hsl": {
    "h": 226.667,
    "s": 41.284,
    "l": 42.745
  },
  "oklch": {
    "l": 0.46563,
    "c": 0.11591,
    "h": 269.5
  },
  "luminance": 0.09764
}

Semantic roles & 50–950 ramp

primary
#40549A
secondary
#B8AB7E
accent
#B657D1
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #40549A

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

Preview Lab → · Contrast checker → · Palette generator →

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