#40549C#40549C

#40549C is a mid, moderate blue. Relative luminance 0.098; OKLCH L 46.7% C 0.119 H 269.7°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#40549C
RGBrgb(64, 84, 156)
HSLhsl(227, 42%, 43%)
HSVhsv(227, 59%, 61%)
CMYKcmyk(59%, 46.2%, 0%, 38.8%)
CIE-LABlab(37.54, 14.98, -41.70)
CIE-LCHlch(37.54, 44.31, 289.76°)
OKLaboklab(46.7% -0.0007 -0.1189)
OKLCHoklch(46.7% 0.119 269.7)
XYZxyz(11.2834, 9.8301, 32.7488)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40549C #9C8840
analogous
#40829C #40549C #5A409C
triadic
#40549C #9C4054 #549C40
tetradic
#40549C #9C4082 #9C8840 #409C5A
square
#40549C #9C4082 #9C8840 #409C5A
split-complementary
#40549C #9C5A40 #829C40
monochromatic
#1C2545 #2E3D71 #40549C #5D72BC #8897CE

Accessibility & contrast

On white

7.08
#40549C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#40549C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40549C
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40549C#FFFFFF#000000##FFFFFF
##40549C1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335D9F
Deuteranopia (green-blind)
#26549A
Tritanopia (blue-blind)
#006470
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #40549c;
/* rgb */ color: rgb(64, 84, 156);
/* oklch */ color: oklch(46.7% 0.119 269.7);
Tailwind
colors: {
  custom: {
    50: '#7d83ba',
    500: '#40549c',
    950: '#000000',
  },
}
SCSS
$custom: #40549c;
$custom-light: #7d83ba;
$custom-dark: #000000;
JSON
{
  "hex": "#40549c",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 156
  },
  "hsl": {
    "h": 226.957,
    "s": 41.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46696,
    "c": 0.11886,
    "h": 269.7
  },
  "luminance": 0.09831
}

Semantic roles & 50–950 ramp

primary
#40549C
secondary
#B9AC7F
accent
#B756D2
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #40549C

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

Preview Lab → · Contrast checker → · Palette generator →

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