#4064B4#4064B4

#4064B4 is a mid, vivid blue. Relative luminance 0.135; OKLCH L 51.7% C 0.133 H 264.1°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#4064B4
RGBrgb(64, 100, 180)
HSLhsl(221, 48%, 48%)
HSVhsv(221, 64%, 71%)
CMYKcmyk(64.4%, 44.4%, 0%, 29.4%)
CIE-LABlab(43.50, 13.16, -46.37)
CIE-LCHlch(43.50, 48.20, 285.84°)
OKLaboklab(51.74% -0.0137 -0.1324)
OKLCHoklch(51.74% 0.133 264.1)
XYZxyz(14.9069, 13.4982, 44.9910)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064B4 #B49040
analogous
#409EB4 #4064B4 #5640B4
triadic
#4064B4 #B44064 #64B440
tetradic
#4064B4 #B4409E #B49040 #40B456
square
#4064B4 #B4409E #B49040 #40B456
split-complementary
#4064B4 #B45640 #9EB440
monochromatic
#20325A #304B87 #4064B4 #6886C9 #95AAD9

Accessibility & contrast

On white

5.68
#4064B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#4064B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064B4
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064B4#FFFFFF#000000##FFFFFF
##4064B41.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6CB7
Deuteranopia (green-blind)
#2B62B2
Tritanopia (blue-blind)
#007683
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4064b4;
/* rgb */ color: rgb(64, 100, 180);
/* oklch */ color: oklch(51.7% 0.133 264.1);
Tailwind
colors: {
  custom: {
    50: '#808fcb',
    500: '#4064b4',
    950: '#000000',
  },
}
SCSS
$custom: #4064b4;
$custom-light: #808fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#4064b4",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 180
  },
  "hsl": {
    "h": 221.379,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51742,
    "c": 0.13309,
    "h": 264.1
  },
  "luminance": 0.135
}

Semantic roles & 50–950 ramp

primary
#4064B4
secondary
#C5B38B
accent
#AD51D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #4064B4

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

Preview Lab → · Contrast checker → · Palette generator →

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