#4064D5#4064D5

#4064D5 is a mid, vivid blue. Relative luminance 0.150; OKLCH L 54.1% C 0.179 H 266.9°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#4064D5
RGBrgb(64, 100, 213)
HSLhsl(226, 64%, 54%)
HSVhsv(226, 70%, 84%)
CMYKcmyk(70%, 53.1%, 0%, 16.5%)
CIE-LABlab(45.64, 24.99, -61.99)
CIE-LCHlch(45.64, 66.84, 291.95°)
OKLaboklab(54.06% -0.0096 -0.1783)
OKLCHoklch(54.06% 0.179 266.9)
XYZxyz(18.6776, 15.0065, 64.8501)
Luminance0.1501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064D5 #D5B140
analogous
#40AFD5 #4064D5 #6740D5
triadic
#4064D5 #D54064 #64D540
tetradic
#4064D5 #D540AF #D5B140 #40D567
square
#4064D5 #D540AF #D5B140 #40D567
split-complementary
#4064D5 #D56740 #AFD540
monochromatic
#1C347F #2748B1 #4064D5 #728DE0 #A4B5EB

Accessibility & contrast

On white

5.25
#4064D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#4064D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064D5
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064D5#FFFFFF#000000##FFFFFF
##4064D51.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1173D9
Deuteranopia (green-blind)
#0066D3
Tritanopia (blue-blind)
#007F93
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4064d5;
/* rgb */ color: rgb(64, 100, 213);
/* oklch */ color: oklch(54.1% 0.179 266.9);
Tailwind
colors: {
  custom: {
    50: '#878fe3',
    500: '#4064d5',
    950: '#000000',
  },
}
SCSS
$custom: #4064d5;
$custom-light: #878fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#4064d5",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 213
  },
  "hsl": {
    "h": 225.503,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54056,
    "c": 0.17859,
    "h": 266.9
  },
  "luminance": 0.15008
}

Semantic roles & 50–950 ramp

primary
#4064D5
secondary
#D8C999
accent
#BF41E7
background
#F8F8FE
surface
#F0F0FC
border
#CBCBD5
text
#0D0C15
muted
#7D7D84

Preview Lab

Preview with #4064D5

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

Preview Lab → · Contrast checker → · Palette generator →

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