#40519A#40519A

#40519A is a mid, moderate blue. Relative luminance 0.093; OKLCH L 45.9% C 0.120 H 271.1°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#40519A
RGBrgb(64, 81, 154)
HSLhsl(229, 41%, 43%)
HSVhsv(229, 58%, 60%)
CMYKcmyk(58.4%, 47.4%, 0%, 39.6%)
CIE-LABlab(36.57, 16.24, -42.04)
CIE-LCHlch(36.57, 45.07, 291.12°)
OKLaboklab(45.92% 0.0024 -0.1199)
OKLCHoklch(45.92% 0.12 271.1)
XYZxyz(10.8876, 9.3071, 31.7883)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40519A #9A8940
analogous
#407E9A #40519A #5C409A
triadic
#40519A #9A4051 #519A40
tetradic
#40519A #9A407E #9A8940 #409A5C
square
#40519A #9A407E #9A8940 #409A5C
split-complementary
#40519A #9A5C40 #7E9A40
monochromatic
#1C2444 #2E3A6F #40519A #5C6EBB #8794CD

Accessibility & contrast

On white

7.34
#40519A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#40519A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40519A
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40519A#FFFFFF#000000##FFFFFF
##40519A1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5A9D
Deuteranopia (green-blind)
#225298
Tritanopia (blue-blind)
#01616E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #40519a;
/* rgb */ color: rgb(64, 81, 154);
/* oklch */ color: oklch(45.9% 0.120 271.1);
Tailwind
colors: {
  custom: {
    50: '#7d81b8',
    500: '#40519a',
    950: '#000000',
  },
}
SCSS
$custom: #40519a;
$custom-light: #7d81b8;
$custom-dark: #000000;
JSON
{
  "hex": "#40519a",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 154
  },
  "hsl": {
    "h": 228.667,
    "s": 41.284,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45918,
    "c": 0.11993,
    "h": 271.1
  },
  "luminance": 0.09308
}

Semantic roles & 50–950 ramp

primary
#40519A
secondary
#B8AD7E
accent
#BA57D1
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #40519A

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

Preview Lab → · Contrast checker → · Palette generator →

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