#4064C7#4064C7

#4064C7 is a mid, vivid blue. Relative luminance 0.143; OKLCH L 53.0% C 0.160 H 266.1°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#4064C7
RGBrgb(64, 100, 199)
HSLhsl(224, 55%, 52%)
HSVhsv(224, 68%, 78%)
CMYKcmyk(67.8%, 49.7%, 0%, 22%)
CIE-LABlab(44.70, 19.96, -55.49)
CIE-LCHlch(44.70, 58.97, 289.78°)
OKLaboklab(53.04% -0.0109 -0.1592)
OKLCHoklch(53.04% 0.16 266.1)
XYZxyz(16.9767, 14.3262, 55.8923)
Luminance0.1433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064C7 #C7A340
analogous
#40A8C7 #4064C7 #6040C7
triadic
#4064C7 #C74064 #64C740
tetradic
#4064C7 #C740A8 #C7A340 #40C760
square
#4064C7 #C740A8 #C7A340 #40C760
split-complementary
#4064C7 #C76040 #A8C740
monochromatic
#20346D #2E4B9C #4064C7 #6F8AD5 #9FB1E3

Accessibility & contrast

On white

5.43
#4064C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#4064C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064C7
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064C7#FFFFFF#000000##FFFFFF
##4064C71.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C70CB
Deuteranopia (green-blind)
#0064C5
Tritanopia (blue-blind)
#007B8C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4064c7;
/* rgb */ color: rgb(64, 100, 199);
/* oklch */ color: oklch(53.0% 0.160 266.1);
Tailwind
colors: {
  custom: {
    50: '#848fd9',
    500: '#4064c7',
    950: '#000000',
  },
}
SCSS
$custom: #4064c7;
$custom-light: #848fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4064c7",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 199
  },
  "hsl": {
    "h": 224,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53037,
    "c": 0.15957,
    "h": 266.1
  },
  "luminance": 0.14328
}

Semantic roles & 50–950 ramp

primary
#4064C7
secondary
#CFBF94
accent
#B64ADE
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4064C7

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

Preview Lab → · Contrast checker → · Palette generator →

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