#4064CF#4064CF

#4064CF is a mid, vivid blue. Relative luminance 0.147; OKLCH L 53.6% C 0.170 H 266.6°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#4064CF
RGBrgb(64, 100, 207)
HSLhsl(225, 60%, 53%)
HSVhsv(225, 69%, 81%)
CMYKcmyk(69.1%, 51.7%, 0%, 18.8%)
CIE-LABlab(45.23, 22.83, -59.23)
CIE-LCHlch(45.23, 63.47, 291.08°)
OKLaboklab(53.61% -0.0101 -0.1702)
OKLCHoklch(53.61% 0.17 266.6)
XYZxyz(17.9301, 14.7075, 60.9133)
Luminance0.1471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064CF #CFAB40
analogous
#40ACCF #4064CF #6340CF
triadic
#4064CF #CF4064 #64CF40
tetradic
#4064CF #CF40AC #CFAB40 #40CF63
square
#4064CF #CF40AC #CFAB40 #40CF63
split-complementary
#4064CF #CF6340 #ACCF40
monochromatic
#1E3477 #2A4AA8 #4064CF #718CDB #A2B3E8

Accessibility & contrast

On white

5.33
#4064CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#4064CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064CF
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064CF#FFFFFF#000000##FFFFFF
##4064CF1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2072D3
Deuteranopia (green-blind)
#0065CD
Tritanopia (blue-blind)
#007D90
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4064cf;
/* rgb */ color: rgb(64, 100, 207);
/* oklch */ color: oklch(53.6% 0.170 266.6);
Tailwind
colors: {
  custom: {
    50: '#858fde',
    500: '#4064cf',
    950: '#000000',
  },
}
SCSS
$custom: #4064cf;
$custom-light: #858fde;
$custom-dark: #000000;
JSON
{
  "hex": "#4064cf",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 207
  },
  "hsl": {
    "h": 224.895,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53613,
    "c": 0.17049,
    "h": 266.6
  },
  "luminance": 0.14709
}

Semantic roles & 50–950 ramp

primary
#4064CF
secondary
#D4C597
accent
#BB45E3
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4064CF

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

Preview Lab → · Contrast checker → · Palette generator →

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