#4066CB#4066CB

#4066CB is a mid, vivid blue. Relative luminance 0.149; OKLCH L 53.7% C 0.163 H 265.7°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#4066CB
RGBrgb(64, 102, 203)
HSLhsl(224, 57%, 52%)
HSVhsv(224, 68%, 80%)
CMYKcmyk(68.5%, 49.8%, 0%, 20.4%)
CIE-LABlab(45.50, 20.12, -56.49)
CIE-LCHlch(45.50, 59.97, 289.61°)
OKLaboklab(53.73% -0.0123 -0.1621)
OKLCHoklch(53.73% 0.163 265.7)
XYZxyz(17.6415, 14.9028, 58.4351)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4066CB #CBA540
analogous
#40ACCB #4066CB #5F40CB
triadic
#4066CB #CB4066 #66CB40
tetradic
#4066CB #CB40AC #CBA540 #40CB5F
square
#4066CB #CB40AC #CBA540 #40CB5F
split-complementary
#4066CB #CB5F40 #ACCB40
monochromatic
#1F3672 #2C4CA2 #4066CB #708DD8 #A0B3E5

Accessibility & contrast

On white

5.28
#4066CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#4066CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4066CB
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4066CB#FFFFFF#000000##FFFFFF
##4066CB1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4066cb;
/* rgb */ color: rgb(64, 102, 203);
/* oklch */ color: oklch(53.7% 0.163 265.7);
Tailwind
colors: {
  custom: {
    50: '#8491db',
    500: '#4066cb',
    950: '#000000',
  },
}
SCSS
$custom: #4066cb;
$custom-light: #8491db;
$custom-dark: #000000;
JSON
{
  "hex": "#4066cb",
  "rgb": {
    "r": 64,
    "g": 102,
    "b": 203
  },
  "hsl": {
    "h": 223.597,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53733,
    "c": 0.16258,
    "h": 265.7
  },
  "luminance": 0.14905
}

Semantic roles & 50–950 ramp

primary
#4066CB
secondary
#D2C195
accent
#B747E0
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4066CB

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

Preview Lab → · Contrast checker → · Palette generator →

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