#40539E#40539E

#40539E is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.6% C 0.123 H 270.3°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#40539E
RGBrgb(64, 83, 158)
HSLhsl(228, 42%, 44%)
HSVhsv(228, 59%, 62%)
CMYKcmyk(59.5%, 47.5%, 0%, 38%)
CIE-LABlab(37.38, 16.33, -43.15)
CIE-LCHlch(37.38, 46.14, 290.73°)
OKLaboklab(46.62% 0.0007 -0.1231)
OKLCHoklch(46.62% 0.123 270.3)
XYZxyz(11.3771, 9.7442, 33.6224)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40539E #9E8B40
analogous
#40829E #40539E #5C409E
triadic
#40539E #9E4053 #539E40
tetradic
#40539E #9E4082 #9E8B40 #409E5C
square
#40539E #9E4082 #9E8B40 #409E5C
split-complementary
#40539E #9E5C40 #829E40
monochromatic
#1D2547 #2E3C72 #40539E #5E71BE #8997CF

Accessibility & contrast

On white

7.12
#40539E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#40539E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40539E
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40539E#FFFFFF#000000##FFFFFF
##40539E1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5CA1
Deuteranopia (green-blind)
#21549C
Tritanopia (blue-blind)
#006471
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #40539e;
/* rgb */ color: rgb(64, 83, 158);
/* oklch */ color: oklch(46.6% 0.123 270.3);
Tailwind
colors: {
  custom: {
    50: '#7d83bb',
    500: '#40539e',
    950: '#000000',
  },
}
SCSS
$custom: #40539e;
$custom-light: #7d83bb;
$custom-dark: #000000;
JSON
{
  "hex": "#40539e",
  "rgb": {
    "r": 64,
    "g": 83,
    "b": 158
  },
  "hsl": {
    "h": 227.872,
    "s": 42.342,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46617,
    "c": 0.12314,
    "h": 270.3
  },
  "luminance": 0.09745
}

Semantic roles & 50–950 ramp

primary
#40539E
secondary
#BAAE80
accent
#B956D2
background
#F8F7FB
surface
#EFEEF6
border
#CAC9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #40539E

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

Preview Lab → · Contrast checker → · Palette generator →

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