#40639B#40639B

#40639B is a mid, moderate blue. Relative luminance 0.124; OKLCH L 50.0% C 0.099 H 259.4°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#40639B
RGBrgb(64, 99, 155)
HSLhsl(217, 42%, 43%)
HSVhsv(217, 59%, 61%)
CMYKcmyk(58.7%, 36.1%, 0%, 39.2%)
CIE-LABlab(41.81, 5.01, -34.31)
CIE-LCHlch(41.81, 34.67, 278.31°)
OKLaboklab(49.98% -0.0181 -0.097)
OKLCHoklch(49.98% 0.099 259.4)
XYZxyz(12.4905, 12.3792, 32.7352)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40639B #9B7840
analogous
#40909B #40639B #4A409B
triadic
#40639B #9B4063 #639B40
tetradic
#40639B #9B4090 #9B7840 #409B4A
square
#40639B #9B4090 #9B7840 #409B4A
split-complementary
#40639B #9B4A40 #909B40
monochromatic
#1C2C44 #2E4770 #40639B #5C81BC #88A3CE

Accessibility & contrast

On white

6.04
#40639B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#40639B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40639B
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40639B#FFFFFF#000000##FFFFFF
##40639B1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C679D
Deuteranopia (green-blind)
#405F9A
Tritanopia (blue-blind)
#007077
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #40639b;
/* rgb */ color: rgb(64, 99, 155);
/* oklch */ color: oklch(50.0% 0.099 259.4);
Tailwind
colors: {
  custom: {
    50: '#7c8fb9',
    500: '#40639b',
    950: '#000000',
  },
}
SCSS
$custom: #40639b;
$custom-light: #7c8fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#40639b",
  "rgb": {
    "r": 64,
    "g": 99,
    "b": 155
  },
  "hsl": {
    "h": 216.923,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.49976,
    "c": 0.09873,
    "h": 259.4
  },
  "luminance": 0.1238
}

Semantic roles & 50–950 ramp

primary
#40639B
secondary
#B8A27E
accent
#A256D1
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0C11
muted
#7C7D80

Preview Lab

Preview with #40639B

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

Preview Lab → · Contrast checker → · Palette generator →

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