#40579B#40579B

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

Color values

HEX#40579B
RGBrgb(64, 87, 155)
HSLhsl(225, 42%, 43%)
HSVhsv(225, 59%, 61%)
CMYKcmyk(58.7%, 43.9%, 0%, 39.2%)
CIE-LABlab(38.33, 12.68, -39.84)
CIE-LCHlch(38.33, 41.81, 287.66°)
OKLaboklab(47.28% -0.0043 -0.1134)
OKLCHoklch(47.28% 0.113 267.8)
XYZxyz(11.4370, 10.2720, 32.3840)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40579B #9B8440
analogous
#40849B #40579B #56409B
triadic
#40579B #9B4057 #579B40
tetradic
#40579B #9B4084 #9B8440 #409B56
square
#40579B #9B4084 #9B8440 #409B56
split-complementary
#40579B #9B5640 #849B40
monochromatic
#1C2644 #2E3F70 #40579B #5C74BC #8899CE

Accessibility & contrast

On white

6.87
#40579B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#40579B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40579B
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40579B#FFFFFF#000000##FFFFFF
##40579B1.006.873.056.87
#FFFFFF6.871.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395F9E
Deuteranopia (green-blind)
#2D569A
Tritanopia (blue-blind)
#006671
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #40579b;
/* rgb */ color: rgb(64, 87, 155);
/* oklch */ color: oklch(47.3% 0.113 267.8);
Tailwind
colors: {
  custom: {
    50: '#7c86b9',
    500: '#40579b',
    950: '#000000',
  },
}
SCSS
$custom: #40579b;
$custom-light: #7c86b9;
$custom-dark: #000000;
JSON
{
  "hex": "#40579b",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 155
  },
  "hsl": {
    "h": 224.835,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47282,
    "c": 0.11344,
    "h": 267.8
  },
  "luminance": 0.10273
}

Semantic roles & 50–950 ramp

primary
#40579B
secondary
#B8AA7E
accent
#B256D1
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #40579B

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

Preview Lab → · Contrast checker → · Palette generator →

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