#4064C9#4064C9

#4064C9 is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.2% C 0.162 H 266.2°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#4064C9
RGBrgb(64, 100, 201)
HSLhsl(224, 56%, 52%)
HSVhsv(224, 68%, 79%)
CMYKcmyk(68.2%, 50.2%, 0%, 21.2%)
CIE-LABlab(44.83, 20.68, -56.43)
CIE-LCHlch(44.83, 60.10, 290.13°)
OKLaboklab(53.18% -0.0107 -0.162)
OKLCHoklch(53.18% 0.162 266.2)
XYZxyz(17.2105, 14.4197, 57.1233)
Luminance0.1442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064C9 #C9A540
analogous
#40A8C9 #4064C9 #6140C9
triadic
#4064C9 #C94064 #64C940
tetradic
#4064C9 #C940A8 #C9A540 #40C961
square
#4064C9 #C940A8 #C9A540 #40C961
split-complementary
#4064C9 #C96140 #A8C940
monochromatic
#1F346F #2D4B9F #4064C9 #708BD6 #9FB1E4

Accessibility & contrast

On white

5.41
#4064C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#4064C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064C9
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064C9#FFFFFF#000000##FFFFFF
##4064C91.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2971CD
Deuteranopia (green-blind)
#0064C7
Tritanopia (blue-blind)
#007C8D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4064c9;
/* rgb */ color: rgb(64, 100, 201);
/* oklch */ color: oklch(53.2% 0.162 266.2);
Tailwind
colors: {
  custom: {
    50: '#848fda',
    500: '#4064c9',
    950: '#000000',
  },
}
SCSS
$custom: #4064c9;
$custom-light: #848fda;
$custom-dark: #000000;
JSON
{
  "hex": "#4064c9",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 201
  },
  "hsl": {
    "h": 224.234,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53179,
    "c": 0.16231,
    "h": 266.2
  },
  "luminance": 0.14421
}

Semantic roles & 50–950 ramp

primary
#4064C9
secondary
#D0C194
accent
#B849DF
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4064C9

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

Preview Lab → · Contrast checker → · Palette generator →

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