#40579C#40579C

#40579C is a mid, moderate blue. Relative luminance 0.103; OKLCH L 47.3% C 0.115 H 268.0°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#40579C
RGBrgb(64, 87, 156)
HSLhsl(225, 42%, 43%)
HSVhsv(225, 59%, 61%)
CMYKcmyk(59%, 44.2%, 0%, 38.8%)
CIE-LABlab(38.39, 13.03, -40.34)
CIE-LCHlch(38.39, 42.39, 287.90°)
OKLaboklab(47.35% -0.0041 -0.1148)
OKLCHoklch(47.35% 0.115 268)
XYZxyz(11.5213, 10.3058, 32.8281)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40579C #9C8540
analogous
#40859C #40579C #57409C
triadic
#40579C #9C4057 #579C40
tetradic
#40579C #9C4085 #9C8540 #409C57
square
#40579C #9C4085 #9C8540 #409C57
split-complementary
#40579C #9C5740 #859C40
monochromatic
#1C2745 #2E3F71 #40579C #5D75BC #889ACE

Accessibility & contrast

On white

6.86
#40579C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#40579C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40579C
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40579C#FFFFFF#000000##FFFFFF
##40579C1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385F9F
Deuteranopia (green-blind)
#2C579B
Tritanopia (blue-blind)
#006672
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #40579c;
/* rgb */ color: rgb(64, 87, 156);
/* oklch */ color: oklch(47.3% 0.115 268.0);
Tailwind
colors: {
  custom: {
    50: '#7d86b9',
    500: '#40579c',
    950: '#000000',
  },
}
SCSS
$custom: #40579c;
$custom-light: #7d86b9;
$custom-dark: #000000;
JSON
{
  "hex": "#40579c",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 156
  },
  "hsl": {
    "h": 225,
    "s": 41.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47347,
    "c": 0.11491,
    "h": 268
  },
  "luminance": 0.10307
}

Semantic roles & 50–950 ramp

primary
#40579C
secondary
#B9AA7F
accent
#B356D2
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #40579C

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

Preview Lab → · Contrast checker → · Palette generator →

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