#4066CF#4066CF

#4066CF is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.0% C 0.168 H 266.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#4066CF
RGBrgb(64, 102, 207)
HSLhsl(224, 60%, 53%)
HSVhsv(224, 69%, 81%)
CMYKcmyk(69.1%, 50.7%, 0%, 18.8%)
CIE-LABlab(45.77, 21.56, -58.36)
CIE-LCHlch(45.77, 62.22, 290.28°)
OKLaboklab(54.02% -0.0118 -0.1676)
OKLCHoklch(54.02% 0.168 266)
XYZxyz(18.1243, 15.0959, 60.9780)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4066CF #CFA940
analogous
#40ADCF #4066CF #6140CF
triadic
#4066CF #CF4066 #66CF40
tetradic
#4066CF #CF40AD #CFA940 #40CF61
square
#4066CF #CF40AD #CFA940 #40CF61
split-complementary
#4066CF #CF6140 #ADCF40
monochromatic
#1E3577 #2A4BA8 #4066CF #718DDB #A2B4E8

Accessibility & contrast

On white

5.22
#4066CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#4066CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4066CF
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4066CF#FFFFFF#000000##FFFFFF
##4066CF1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2773D3
Deuteranopia (green-blind)
#0066CD
Tritanopia (blue-blind)
#007F91
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4066cf;
/* rgb */ color: rgb(64, 102, 207);
/* oklch */ color: oklch(54.0% 0.168 266.0);
Tailwind
colors: {
  custom: {
    50: '#8591de',
    500: '#4066cf',
    950: '#000000',
  },
}
SCSS
$custom: #4066cf;
$custom-light: #8591de;
$custom-dark: #000000;
JSON
{
  "hex": "#4066cf",
  "rgb": {
    "r": 64,
    "g": 102,
    "b": 207
  },
  "hsl": {
    "h": 224.056,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54018,
    "c": 0.16804,
    "h": 266
  },
  "luminance": 0.15098
}

Semantic roles & 50–950 ramp

primary
#4066CF
secondary
#D4C497
accent
#B945E3
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4066CF

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

Preview Lab → · Contrast checker → · Palette generator →

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