#4064D1#4064D1

#4064D1 is a mid, vivid blue. Relative luminance 0.148; OKLCH L 53.8% C 0.173 H 266.7°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#4064D1
RGBrgb(64, 100, 209)
HSLhsl(225, 61%, 54%)
HSVhsv(225, 69%, 82%)
CMYKcmyk(69.4%, 52.2%, 0%, 18%)
CIE-LABlab(45.37, 23.55, -60.15)
CIE-LCHlch(45.37, 64.60, 291.38°)
OKLaboklab(53.76% -0.0099 -0.1729)
OKLCHoklch(53.76% 0.173 266.7)
XYZxyz(18.1761, 14.8060, 62.2092)
Luminance0.1481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064D1 #D1AD40
analogous
#40ADD1 #4064D1 #6440D1
triadic
#4064D1 #D14064 #64D140
tetradic
#4064D1 #D140AD #D1AD40 #40D164
square
#4064D1 #D140AD #D1AD40 #40D164
split-complementary
#4064D1 #D16440 #ADD140
monochromatic
#1D3479 #2949AB #4064D1 #718CDD #A3B4E9

Accessibility & contrast

On white

5.30
#4064D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#4064D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064D1
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064D1#FFFFFF#000000##FFFFFF
##4064D11.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C72D5
Deuteranopia (green-blind)
#0065CF
Tritanopia (blue-blind)
#007E91
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4064d1;
/* rgb */ color: rgb(64, 100, 209);
/* oklch */ color: oklch(53.8% 0.173 266.7);
Tailwind
colors: {
  custom: {
    50: '#868fe0',
    500: '#4064d1',
    950: '#000000',
  },
}
SCSS
$custom: #4064d1;
$custom-light: #868fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#4064d1",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 209
  },
  "hsl": {
    "h": 225.103,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5376,
    "c": 0.1732,
    "h": 266.7
  },
  "luminance": 0.14808
}

Semantic roles & 50–950 ramp

primary
#4064D1
secondary
#D5C697
accent
#BC44E4
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4064D1

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

Preview Lab → · Contrast checker → · Palette generator →

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