#40539B#40539B

#40539B is a mid, moderate blue. Relative luminance 0.096; OKLCH L 46.4% C 0.119 H 270.1°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#40539B
RGBrgb(64, 83, 155)
HSLhsl(227, 42%, 43%)
HSVhsv(227, 59%, 61%)
CMYKcmyk(58.7%, 46.5%, 0%, 39.2%)
CIE-LABlab(37.19, 15.28, -41.65)
CIE-LCHlch(37.19, 44.36, 290.15°)
OKLaboklab(46.41% 0.0003 -0.1187)
OKLCHoklch(46.41% 0.119 270.1)
XYZxyz(11.1220, 9.6422, 32.2790)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40539B #9B8840
analogous
#40809B #40539B #5B409B
triadic
#40539B #9B4053 #539B40
tetradic
#40539B #9B4080 #9B8840 #409B5B
square
#40539B #9B4080 #9B8840 #409B5B
split-complementary
#40539B #9B5B40 #809B40
monochromatic
#1C2544 #2E3C70 #40539B #5C70BC #8896CE

Accessibility & contrast

On white

7.17
#40539B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#40539B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40539B
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40539B#FFFFFF#000000##FFFFFF
##40539B1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325C9E
Deuteranopia (green-blind)
#255499
Tritanopia (blue-blind)
#00636F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #40539b;
/* rgb */ color: rgb(64, 83, 155);
/* oklch */ color: oklch(46.4% 0.119 270.1);
Tailwind
colors: {
  custom: {
    50: '#7d83b9',
    500: '#40539b',
    950: '#000000',
  },
}
SCSS
$custom: #40539b;
$custom-light: #7d83b9;
$custom-dark: #000000;
JSON
{
  "hex": "#40539b",
  "rgb": {
    "r": 64,
    "g": 83,
    "b": 155
  },
  "hsl": {
    "h": 227.473,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46414,
    "c": 0.11872,
    "h": 270.1
  },
  "luminance": 0.09643
}

Semantic roles & 50–950 ramp

primary
#40539B
secondary
#B8AC7E
accent
#B856D1
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #40539B

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

Preview Lab → · Contrast checker → · Palette generator →

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