#40519D#40519D

#40519D is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.1% C 0.124 H 271.3°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#40519D
RGBrgb(64, 81, 157)
HSLhsl(229, 42%, 43%)
HSVhsv(229, 59%, 62%)
CMYKcmyk(59.2%, 48.4%, 0%, 38.4%)
CIE-LABlab(36.76, 17.29, -43.54)
CIE-LCHlch(36.76, 46.85, 291.65°)
OKLaboklab(46.12% 0.0028 -0.1243)
OKLCHoklch(46.12% 0.124 271.3)
XYZxyz(11.1406, 9.4083, 33.1207)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40519D #9D8C40
analogous
#407F9D #40519D #5D409D
triadic
#40519D #9D4051 #519D40
tetradic
#40519D #9D407F #9D8C40 #409D5D
square
#40519D #9D407F #9D8C40 #409D5D
split-complementary
#40519D #9D5D40 #7F9D40
monochromatic
#1D2446 #2E3B72 #40519D #5D6FBD #8995CF

Accessibility & contrast

On white

7.29
#40519D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#40519D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40519D
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40519D#FFFFFF#000000##FFFFFF
##40519D1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5BA0
Deuteranopia (green-blind)
#1E539B
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #40519d;
/* rgb */ color: rgb(64, 81, 157);
/* oklch */ color: oklch(46.1% 0.124 271.3);
Tailwind
colors: {
  custom: {
    50: '#7d81ba',
    500: '#40519d',
    950: '#000000',
  },
}
SCSS
$custom: #40519d;
$custom-light: #7d81ba;
$custom-dark: #000000;
JSON
{
  "hex": "#40519d",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 157
  },
  "hsl": {
    "h": 229.032,
    "s": 42.081,
    "l": 43.333
  },
  "oklch": {
    "l": 0.46124,
    "c": 0.12435,
    "h": 271.3
  },
  "luminance": 0.09409
}

Semantic roles & 50–950 ramp

primary
#40519D
secondary
#B9AF7F
accent
#BB56D2
background
#F8F7FB
surface
#EFEEF6
border
#CAC9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #40519D

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

Preview Lab → · Contrast checker → · Palette generator →

#40519D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva