#40639A#40639A

#40639A is a mid, moderate blue. Relative luminance 0.123; OKLCH L 49.9% C 0.097 H 259.1°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#40639A
RGBrgb(64, 99, 154)
HSLhsl(217, 41%, 43%)
HSVhsv(217, 58%, 60%)
CMYKcmyk(58.4%, 35.7%, 0%, 39.6%)
CIE-LABlab(41.76, 4.67, -33.79)
CIE-LCHlch(41.76, 34.11, 277.87°)
OKLaboklab(49.92% -0.0184 -0.0955)
OKLCHoklch(49.92% 0.097 259.1)
XYZxyz(12.4069, 12.3457, 32.2947)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40639A #9A7740
analogous
#40909A #40639A #4A409A
triadic
#40639A #9A4063 #639A40
tetradic
#40639A #9A4090 #9A7740 #409A4A
square
#40639A #9A4090 #9A7740 #409A4A
split-complementary
#40639A #9A4A40 #909A40
monochromatic
#1C2B44 #2E476F #40639A #5C81BB #87A2CD

Accessibility & contrast

On white

6.05
#40639A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#40639A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40639A
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40639A#FFFFFF#000000##FFFFFF
##40639A1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C679C
Deuteranopia (green-blind)
#415F99
Tritanopia (blue-blind)
#006F77
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #40639a;
/* rgb */ color: rgb(64, 99, 154);
/* oklch */ color: oklch(49.9% 0.097 259.1);
Tailwind
colors: {
  custom: {
    50: '#7c8fb8',
    500: '#40639a',
    950: '#000000',
  },
}
SCSS
$custom: #40639a;
$custom-light: #7c8fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#40639a",
  "rgb": {
    "r": 64,
    "g": 99,
    "b": 154
  },
  "hsl": {
    "h": 216.667,
    "s": 41.284,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49919,
    "c": 0.0973,
    "h": 259.1
  },
  "luminance": 0.12347
}

Semantic roles & 50–950 ramp

primary
#40639A
secondary
#B8A17E
accent
#A257D1
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0C11
muted
#7C7D80

Preview Lab

Preview with #40639A

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

Preview Lab → · Contrast checker → · Palette generator →

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