#40539F#40539F

#40539F is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.7% C 0.125 H 270.4°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#40539F
RGBrgb(64, 83, 159)
HSLhsl(228, 43%, 44%)
HSVhsv(228, 60%, 62%)
CMYKcmyk(59.7%, 47.8%, 0%, 37.6%)
CIE-LABlab(37.44, 16.68, -43.65)
CIE-LCHlch(37.44, 46.73, 290.92°)
OKLaboklab(46.69% 0.0009 -0.1246)
OKLCHoklch(46.69% 0.125 270.4)
XYZxyz(11.4635, 9.7788, 34.0776)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40539F #9F8C40
analogous
#40829F #40539F #5C409F
triadic
#40539F #9F4053 #539F40
tetradic
#40539F #9F4082 #9F8C40 #409F5C
square
#40539F #9F4082 #9F8C40 #409F5C
split-complementary
#40539F #9F5C40 #829F40
monochromatic
#1D2548 #2E3C73 #40539F #5E71BE #8A98D0

Accessibility & contrast

On white

7.10
#40539F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#40539F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40539F
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40539F#FFFFFF#000000##FFFFFF
##40539F1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5DA2
Deuteranopia (green-blind)
#20549D
Tritanopia (blue-blind)
#006471
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #40539f;
/* rgb */ color: rgb(64, 83, 159);
/* oklch */ color: oklch(46.7% 0.125 270.4);
Tailwind
colors: {
  custom: {
    50: '#7d83bc',
    500: '#40539f',
    950: '#000000',
  },
}
SCSS
$custom: #40539f;
$custom-light: #7d83bc;
$custom-dark: #000000;
JSON
{
  "hex": "#40539f",
  "rgb": {
    "r": 64,
    "g": 83,
    "b": 159
  },
  "hsl": {
    "h": 228,
    "s": 42.601,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46685,
    "c": 0.1246,
    "h": 270.4
  },
  "luminance": 0.0978
}

Semantic roles & 50–950 ramp

primary
#40539F
secondary
#BBAF80
accent
#B955D2
background
#F8F7FB
surface
#EFEEF6
border
#CAC9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #40539F

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

Preview Lab → · Contrast checker → · Palette generator →

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