#4066D5#4066D5

#4066D5 is a mid, vivid blue. Relative luminance 0.154; OKLCH L 54.5% C 0.176 H 266.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#4066D5
RGBrgb(64, 102, 213)
HSLhsl(225, 64%, 54%)
HSVhsv(225, 70%, 84%)
CMYKcmyk(70%, 52.1%, 0%, 16.5%)
CIE-LABlab(46.17, 23.72, -61.14)
CIE-LCHlch(46.17, 65.58, 291.20°)
OKLaboklab(54.46% -0.0112 -0.1758)
OKLCHoklch(54.46% 0.176 266.3)
XYZxyz(18.8718, 15.3949, 64.9148)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4066D5 #D5AF40
analogous
#40B1D5 #4066D5 #6540D5
triadic
#4066D5 #D54066 #66D540
tetradic
#4066D5 #D540B1 #D5AF40 #40D565
square
#4066D5 #D540B1 #D5AF40 #40D565
split-complementary
#4066D5 #D56540 #B1D540
monochromatic
#1C357F #274AB1 #4066D5 #728EE0 #A4B6EB

Accessibility & contrast

On white

5.15
#4066D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#4066D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4066D5
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4066D5#FFFFFF#000000##FFFFFF
##4066D51.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C75D9
Deuteranopia (green-blind)
#0067D3
Tritanopia (blue-blind)
#008194
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4066d5;
/* rgb */ color: rgb(64, 102, 213);
/* oklch */ color: oklch(54.5% 0.176 266.3);
Tailwind
colors: {
  custom: {
    50: '#8691e3',
    500: '#4066d5',
    950: '#000000',
  },
}
SCSS
$custom: #4066d5;
$custom-light: #8691e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4066d5",
  "rgb": {
    "r": 64,
    "g": 102,
    "b": 213
  },
  "hsl": {
    "h": 224.698,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54455,
    "c": 0.17615,
    "h": 266.3
  },
  "luminance": 0.15397
}

Semantic roles & 50–950 ramp

primary
#4066D5
secondary
#D8C899
accent
#BD41E7
background
#F8F8FE
surface
#F0F0FC
border
#CBCBD5
text
#0D0C15
muted
#7D7D84

Preview Lab

Preview with #4066D5

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

Preview Lab → · Contrast checker → · Palette generator →

#4066D5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva