#4064AB#4064AB

#4064AB is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.2% C 0.120 H 262.6°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#4064AB
RGBrgb(64, 100, 171)
HSLhsl(220, 46%, 46%)
HSVhsv(220, 63%, 67%)
CMYKcmyk(62.6%, 41.5%, 0%, 32.9%)
CIE-LABlab(42.98, 9.96, -41.93)
CIE-LCHlch(42.98, 43.10, 283.37°)
OKLaboklab(51.17% -0.0155 -0.1193)
OKLCHoklch(51.17% 0.12 262.6)
XYZxyz(14.0196, 13.1434, 40.3183)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064AB #AB8740
analogous
#4099AB #4064AB #5140AB
triadic
#4064AB #AB4064 #64AB40
tetradic
#4064AB #AB4099 #AB8740 #40AB51
square
#4064AB #AB4099 #AB8740 #40AB51
split-complementary
#4064AB #AB5140 #99AB40
monochromatic
#1F3052 #2F4A7E #4064AB #6384C5 #90A7D5

Accessibility & contrast

On white

5.79
#4064AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#4064AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064AB
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064AB#FFFFFF#000000##FFFFFF
##4064AB1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446BAE
Deuteranopia (green-blind)
#3561AA
Tritanopia (blue-blind)
#00747F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4064ab;
/* rgb */ color: rgb(64, 100, 171);
/* oklch */ color: oklch(51.2% 0.120 262.6);
Tailwind
colors: {
  custom: {
    50: '#7f8fc4',
    500: '#4064ab',
    950: '#000000',
  },
}
SCSS
$custom: #4064ab;
$custom-light: #7f8fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4064ab",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 171
  },
  "hsl": {
    "h": 219.813,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51166,
    "c": 0.12035,
    "h": 262.6
  },
  "luminance": 0.13145
}

Semantic roles & 50–950 ramp

primary
#4064AB
secondary
#C1AD86
accent
#A953D5
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #4064AB

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

Preview Lab → · Contrast checker → · Palette generator →

#4064AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva