#40639F#40639F

#40639F is a mid, moderate blue. Relative luminance 0.125; OKLCH L 50.2% C 0.104 H 260.6°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#40639F
RGBrgb(64, 99, 159)
HSLhsl(218, 43%, 44%)
HSVhsv(218, 60%, 62%)
CMYKcmyk(59.7%, 37.7%, 0%, 37.6%)
CIE-LABlab(42.02, 6.40, -36.35)
CIE-LCHlch(42.02, 36.91, 279.98°)
OKLaboklab(50.21% -0.0171 -0.103)
OKLCHoklch(50.21% 0.104 260.6)
XYZxyz(12.8320, 12.5158, 34.5337)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40639F #9F7C40
analogous
#40929F #40639F #4C409F
triadic
#40639F #9F4063 #639F40
tetradic
#40639F #9F4092 #9F7C40 #409F4C
square
#40639F #9F4092 #9F7C40 #409F4C
split-complementary
#40639F #9F4C40 #929F40
monochromatic
#1D2D48 #2E4873 #40639F #5E81BE #8AA3D0

Accessibility & contrast

On white

5.99
#40639F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#40639F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40639F
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40639F#FFFFFF#000000##FFFFFF
##40639F1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A68A1
Deuteranopia (green-blind)
#3D5F9E
Tritanopia (blue-blind)
#007079
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #40639f;
/* rgb */ color: rgb(64, 99, 159);
/* oklch */ color: oklch(50.2% 0.104 260.6);
Tailwind
colors: {
  custom: {
    50: '#7d8fbb',
    500: '#40639f',
    950: '#000000',
  },
}
SCSS
$custom: #40639f;
$custom-light: #7d8fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#40639f",
  "rgb": {
    "r": 64,
    "g": 99,
    "b": 159
  },
  "hsl": {
    "h": 217.895,
    "s": 42.601,
    "l": 43.725
  },
  "oklch": {
    "l": 0.5021,
    "c": 0.10443,
    "h": 260.6
  },
  "luminance": 0.12517
}

Semantic roles & 50–950 ramp

primary
#40639F
secondary
#BBA580
accent
#A455D2
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #40639F

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

Preview Lab → · Contrast checker → · Palette generator →

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