#4066B2#4066B2

#4066B2 is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.0% C 0.128 H 262.7°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#4066B2
RGBrgb(64, 102, 178)
HSLhsl(220, 47%, 47%)
HSVhsv(220, 64%, 70%)
CMYKcmyk(64%, 42.7%, 0%, 30.2%)
CIE-LABlab(43.95, 11.17, -44.49)
CIE-LCHlch(43.95, 45.87, 284.10°)
OKLaboklab(52.05% -0.0161 -0.1268)
OKLCHoklch(52.05% 0.128 262.7)
XYZxyz(14.8988, 13.8057, 43.9905)
Luminance0.1381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4066B2 #B28C40
analogous
#409FB2 #4066B2 #5340B2
triadic
#4066B2 #B24066 #66B240
tetradic
#4066B2 #B2409F #B28C40 #40B253
square
#4066B2 #B2409F #B28C40 #40B253
split-complementary
#4066B2 #B25340 #9FB240
monochromatic
#203258 #304C85 #4066B2 #6787C8 #94ABD8

Accessibility & contrast

On white

5.58
#4066B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#4066B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4066B2
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4066B2#FFFFFF#000000##FFFFFF
##4066B21.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#436EB5
Deuteranopia (green-blind)
#3263B0
Tritanopia (blue-blind)
#007783
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4066b2;
/* rgb */ color: rgb(64, 102, 178);
/* oklch */ color: oklch(52.0% 0.128 262.7);
Tailwind
colors: {
  custom: {
    50: '#8091c9',
    500: '#4066b2',
    950: '#000000',
  },
}
SCSS
$custom: #4066b2;
$custom-light: #8091c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4066b2",
  "rgb": {
    "r": 64,
    "g": 102,
    "b": 178
  },
  "hsl": {
    "h": 220,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.52049,
    "c": 0.12784,
    "h": 262.7
  },
  "luminance": 0.13807
}

Semantic roles & 50–950 ramp

primary
#4066B2
secondary
#C4B18A
accent
#AA51D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #4066B2

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

Preview Lab → · Contrast checker → · Palette generator →

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