#4066C7#4066C7

#4066C7 is a mid, vivid blue. Relative luminance 0.147; OKLCH L 53.5% C 0.157 H 265.3°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#4066C7
RGBrgb(64, 102, 199)
HSLhsl(223, 55%, 52%)
HSVhsv(223, 68%, 78%)
CMYKcmyk(67.8%, 48.7%, 0%, 22%)
CIE-LABlab(45.24, 18.68, -54.61)
CIE-LCHlch(45.24, 57.72, 288.89°)
OKLaboklab(53.45% -0.0127 -0.1566)
OKLCHoklch(53.45% 0.157 265.3)
XYZxyz(17.1709, 14.7146, 55.9570)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4066C7 #C7A140
analogous
#40AAC7 #4066C7 #5E40C7
triadic
#4066C7 #C74066 #66C740
tetradic
#4066C7 #C740AA #C7A140 #40C75E
square
#4066C7 #C740AA #C7A140 #40C75E
split-complementary
#4066C7 #C75E40 #AAC740
monochromatic
#20366D #2E4D9C #4066C7 #6F8CD5 #9FB2E3

Accessibility & contrast

On white

5.33
#4066C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#4066C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4066C7
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4066C7#FFFFFF#000000##FFFFFF
##4066C71.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)
#3172CB
Deuteranopia (green-blind)
#0A65C5
Tritanopia (blue-blind)
#007D8D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4066c7;
/* rgb */ color: rgb(64, 102, 199);
/* oklch */ color: oklch(53.5% 0.157 265.3);
Tailwind
colors: {
  custom: {
    50: '#8491d9',
    500: '#4066c7',
    950: '#000000',
  },
}
SCSS
$custom: #4066c7;
$custom-light: #8491d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4066c7",
  "rgb": {
    "r": 64,
    "g": 102,
    "b": 199
  },
  "hsl": {
    "h": 223.111,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53451,
    "c": 0.15711,
    "h": 265.3
  },
  "luminance": 0.14716
}

Semantic roles & 50–950 ramp

primary
#4066C7
secondary
#CFBE94
accent
#B44ADE
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4066C7

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

Preview Lab → · Contrast checker → · Palette generator →

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