#40559F#40559F

#40559F is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.1% C 0.122 H 269.4°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#40559F
RGBrgb(64, 85, 159)
HSLhsl(227, 43%, 44%)
HSVhsv(227, 60%, 62%)
CMYKcmyk(59.7%, 46.5%, 0%, 37.6%)
CIE-LABlab(38.00, 15.38, -42.75)
CIE-LCHlch(38.00, 45.43, 289.79°)
OKLaboklab(47.11% -0.0013 -0.1219)
OKLCHoklch(47.11% 0.122 269.4)
XYZxyz(11.6188, 10.0893, 34.1293)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40559F #9F8A40
analogous
#40849F #40559F #5A409F
triadic
#40559F #9F4055 #559F40
tetradic
#40559F #9F4084 #9F8A40 #409F5A
square
#40559F #9F4084 #9F8A40 #409F5A
split-complementary
#40559F #9F5A40 #849F40
monochromatic
#1D2648 #2E3E73 #40559F #5E73BE #8A99D0

Accessibility & contrast

On white

6.96
#40559F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#40559F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40559F
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40559F#FFFFFF#000000##FFFFFF
##40559F1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325EA2
Deuteranopia (green-blind)
#24559D
Tritanopia (blue-blind)
#006672
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #40559f;
/* rgb */ color: rgb(64, 85, 159);
/* oklch */ color: oklch(47.1% 0.122 269.4);
Tailwind
colors: {
  custom: {
    50: '#7d84bc',
    500: '#40559f',
    950: '#000000',
  },
}
SCSS
$custom: #40559f;
$custom-light: #7d84bc;
$custom-dark: #000000;
JSON
{
  "hex": "#40559f",
  "rgb": {
    "r": 64,
    "g": 85,
    "b": 159
  },
  "hsl": {
    "h": 226.737,
    "s": 42.601,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47112,
    "c": 0.12195,
    "h": 269.4
  },
  "luminance": 0.1009
}

Semantic roles & 50–950 ramp

primary
#40559F
secondary
#BBAE80
accent
#B755D2
background
#F8F8FB
surface
#EFEFF6
border
#CACAD0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #40559F

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

Preview Lab → · Contrast checker → · Palette generator →

#40559F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva