#4064C5#4064C5

#4064C5 is a mid, vivid blue. Relative luminance 0.142; OKLCH L 52.9% C 0.157 H 265.9°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#4064C5
RGBrgb(64, 100, 197)
HSLhsl(224, 53%, 51%)
HSVhsv(224, 68%, 77%)
CMYKcmyk(67.5%, 49.2%, 0%, 22.7%)
CIE-LABlab(44.57, 19.24, -54.54)
CIE-LCHlch(44.57, 57.84, 289.43°)
OKLaboklab(52.9% -0.0112 -0.1564)
OKLCHoklch(52.9% 0.157 265.9)
XYZxyz(16.7461, 14.2339, 54.6774)
Luminance0.1424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064C5 #C5A140
analogous
#40A7C5 #4064C5 #5E40C5
triadic
#4064C5 #C54064 #64C540
tetradic
#4064C5 #C540A7 #C5A140 #40C55E
square
#4064C5 #C540A7 #C5A140 #40C55E
split-complementary
#4064C5 #C55E40 #A7C540
monochromatic
#20346A #2F4B99 #4064C5 #6F8AD3 #9EB0E2

Accessibility & contrast

On white

5.46
#4064C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#4064C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064C5
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064C5#FFFFFF#000000##FFFFFF
##4064C51.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E70C9
Deuteranopia (green-blind)
#0464C3
Tritanopia (blue-blind)
#007B8B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4064c5;
/* rgb */ color: rgb(64, 100, 197);
/* oklch */ color: oklch(52.9% 0.157 265.9);
Tailwind
colors: {
  custom: {
    50: '#838fd7',
    500: '#4064c5',
    950: '#000000',
  },
}
SCSS
$custom: #4064c5;
$custom-light: #838fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#4064c5",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 197
  },
  "hsl": {
    "h": 223.759,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52896,
    "c": 0.15682,
    "h": 265.9
  },
  "luminance": 0.14236
}

Semantic roles & 50–950 ramp

primary
#4064C5
secondary
#CEBE93
accent
#B54BDD
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #4064C5

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

Preview Lab → · Contrast checker → · Palette generator →

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