#4064D9#4064D9

#4064D9 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.4% C 0.184 H 267.1°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#4064D9
RGBrgb(64, 100, 217)
HSLhsl(226, 67%, 55%)
HSVhsv(226, 71%, 85%)
CMYKcmyk(70.5%, 53.9%, 0%, 14.9%)
CIE-LABlab(45.92, 26.42, -63.82)
CIE-LCHlch(45.92, 69.07, 292.49°)
OKLaboklab(54.36% -0.0093 -0.1837)
OKLCHoklch(54.36% 0.184 267.1)
XYZxyz(19.1916, 15.2121, 67.5570)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064D9 #D9B540
analogous
#40B1D9 #4064D9 #6840D9
triadic
#4064D9 #D94064 #64D940
tetradic
#4064D9 #D940B1 #D9B540 #40D968
square
#4064D9 #D940B1 #D9B540 #40D968
split-complementary
#4064D9 #D96840 #B1D940
monochromatic
#1A3384 #2447B7 #4064D9 #738DE3 #A6B7ED

Accessibility & contrast

On white

5.19
#4064D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#4064D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064D9
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064D9#FFFFFF#000000##FFFFFF
##4064D91.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074DD
Deuteranopia (green-blind)
#0066D7
Tritanopia (blue-blind)
#008095
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4064d9;
/* rgb */ color: rgb(64, 100, 217);
/* oklch */ color: oklch(54.4% 0.184 267.1);
Tailwind
colors: {
  custom: {
    50: '#878fe6',
    500: '#4064d9',
    950: '#000000',
  },
}
SCSS
$custom: #4064d9;
$custom-light: #878fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#4064d9",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 217
  },
  "hsl": {
    "h": 225.882,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54356,
    "c": 0.18393,
    "h": 267.1
  },
  "luminance": 0.15214
}

Semantic roles & 50–950 ramp

primary
#4064D9
secondary
#DACB9A
accent
#C13EEA
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #4064D9

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

Preview Lab → · Contrast checker → · Palette generator →

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