#40558B#40558B

#40558B is a mid, moderate blue. Relative luminance 0.095; OKLCH L 45.8% C 0.092 H 266.7°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#40558B
RGBrgb(64, 85, 139)
HSLhsl(223, 37%, 40%)
HSVhsv(223, 54%, 55%)
CMYKcmyk(54%, 38.8%, 0%, 45.5%)
CIE-LABlab(36.84, 8.46, -32.53)
CIE-LCHlch(36.84, 33.61, 284.59°)
OKLaboklab(45.84% -0.0053 -0.092)
OKLCHoklch(45.84% 0.092 266.7)
XYZxyz(10.0215, 9.4504, 25.7171)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40558B #8B7640
analogous
#407B8B #40558B #51408B
triadic
#40558B #8B4055 #558B40
tetradic
#40558B #8B407B #8B7640 #408B51
square
#40558B #8B407B #8B7640 #408B51
split-complementary
#40558B #8B5140 #7B8B40
monochromatic
#192237 #2D3B61 #40558B #5770B2 #8194C5

Accessibility & contrast

On white

7.27
#40558B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#40558B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40558B
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40558B#FFFFFF#000000##FFFFFF
##40558B1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405A8D
Deuteranopia (green-blind)
#37548A
Tritanopia (blue-blind)
#1B6169
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #40558b;
/* rgb */ color: rgb(64, 85, 139);
/* oklch */ color: oklch(45.8% 0.092 266.7);
Tailwind
colors: {
  custom: {
    50: '#7a84ad',
    500: '#40558b',
    950: '#000000',
  },
}
SCSS
$custom: #40558b;
$custom-light: #7a84ad;
$custom-dark: #000000;
JSON
{
  "hex": "#40558b",
  "rgb": {
    "r": 64,
    "g": 85,
    "b": 139
  },
  "hsl": {
    "h": 223.2,
    "s": 36.946,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45839,
    "c": 0.09214,
    "h": 266.7
  },
  "luminance": 0.09451
}

Semantic roles & 50–950 ramp

primary
#40558B
secondary
#AFA078
accent
#AD5BCD
background
#F7F8FA
surface
#EEEFF4
border
#C9CACE
text
#0A0A10
muted
#7C7C7F

Preview Lab

Preview with #40558B

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

Preview Lab → · Contrast checker → · Palette generator →

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