#4066CC#4066CC

#4066CC is a mid, vivid blue. Relative luminance 0.150; OKLCH L 53.8% C 0.164 H 265.8°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#4066CC
RGBrgb(64, 102, 204)
HSLhsl(224, 58%, 53%)
HSVhsv(224, 69%, 80%)
CMYKcmyk(68.6%, 50%, 0%, 20%)
CIE-LABlab(45.57, 20.48, -56.96)
CIE-LCHlch(45.57, 60.53, 289.78°)
OKLaboklab(53.8% -0.0121 -0.1635)
OKLCHoklch(53.8% 0.164 265.8)
XYZxyz(17.7610, 14.9506, 59.0648)
Luminance0.1495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4066CC #CCA640
analogous
#40ACCC #4066CC #6040CC
triadic
#4066CC #CC4066 #66CC40
tetradic
#4066CC #CC40AC #CCA640 #40CC60
square
#4066CC #CC40AC #CCA640 #40CC60
split-complementary
#4066CC #CC6040 #ACCC40
monochromatic
#1F3673 #2C4CA3 #4066CC #708DD9 #A1B3E6

Accessibility & contrast

On white

5.26
#4066CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#4066CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4066CC
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4066CC#FFFFFF#000000##FFFFFF
##4066CC1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B73D0
Deuteranopia (green-blind)
#0066CA
Tritanopia (blue-blind)
#007E8F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4066cc;
/* rgb */ color: rgb(64, 102, 204);
/* oklch */ color: oklch(53.8% 0.164 265.8);
Tailwind
colors: {
  custom: {
    50: '#8591dc',
    500: '#4066cc',
    950: '#000000',
  },
}
SCSS
$custom: #4066cc;
$custom-light: #8591dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4066cc",
  "rgb": {
    "r": 64,
    "g": 102,
    "b": 204
  },
  "hsl": {
    "h": 223.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53804,
    "c": 0.16395,
    "h": 265.8
  },
  "luminance": 0.14952
}

Semantic roles & 50–950 ramp

primary
#4066CC
secondary
#D2C295
accent
#B747E1
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4066CC

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

Preview Lab → · Contrast checker → · Palette generator →

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