#40539A#40539A

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

Color values

HEX#40539A
RGBrgb(64, 83, 154)
HSLhsl(227, 41%, 43%)
HSVhsv(227, 58%, 60%)
CMYKcmyk(58.4%, 46.1%, 0%, 39.6%)
CIE-LABlab(37.13, 14.93, -41.14)
CIE-LCHlch(37.13, 43.77, 289.95°)
OKLaboklab(46.35% 0.0001 -0.1172)
OKLCHoklch(46.35% 0.117 270.1)
XYZxyz(11.0384, 9.6087, 31.8386)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40539A #9A8740
analogous
#40809A #40539A #5A409A
triadic
#40539A #9A4053 #539A40
tetradic
#40539A #9A4080 #9A8740 #409A5A
square
#40539A #9A4080 #9A8740 #409A5A
split-complementary
#40539A #9A5A40 #809A40
monochromatic
#1C2444 #2E3C6F #40539A #5C70BB #8796CD

Accessibility & contrast

On white

7.19
#40539A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#40539A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40539A
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40539A#FFFFFF#000000##FFFFFF
##40539A1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335C9D
Deuteranopia (green-blind)
#265498
Tritanopia (blue-blind)
#00636F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #40539a;
/* rgb */ color: rgb(64, 83, 154);
/* oklch */ color: oklch(46.3% 0.117 270.1);
Tailwind
colors: {
  custom: {
    50: '#7c83b8',
    500: '#40539a',
    950: '#000000',
  },
}
SCSS
$custom: #40539a;
$custom-light: #7c83b8;
$custom-dark: #000000;
JSON
{
  "hex": "#40539a",
  "rgb": {
    "r": 64,
    "g": 83,
    "b": 154
  },
  "hsl": {
    "h": 227.333,
    "s": 41.284,
    "l": 42.745
  },
  "oklch": {
    "l": 0.46347,
    "c": 0.11724,
    "h": 270.1
  },
  "luminance": 0.0961
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40539A

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

Preview Lab → · Contrast checker → · Palette generator →

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