#4066C2#4066C2

#4066C2 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.1% C 0.150 H 264.9°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#4066C2
RGBrgb(64, 102, 194)
HSLhsl(222, 52%, 51%)
HSVhsv(222, 67%, 76%)
CMYKcmyk(67%, 47.4%, 0%, 23.9%)
CIE-LABlab(44.92, 16.89, -52.24)
CIE-LCHlch(44.92, 54.90, 287.92°)
OKLaboklab(53.11% -0.0134 -0.1496)
OKLCHoklch(53.11% 0.15 264.9)
XYZxyz(16.5999, 14.4862, 52.9498)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4066C2 #C29C40
analogous
#40A7C2 #4066C2 #5B40C2
triadic
#4066C2 #C24066 #66C240
tetradic
#4066C2 #C240A7 #C29C40 #40C25B
square
#4066C2 #C240A7 #C29C40 #40C25B
split-complementary
#4066C2 #C25B40 #A7C240
monochromatic
#213567 #304D95 #4066C2 #6E8BD1 #9DB0E0

Accessibility & contrast

On white

5.39
#4066C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#4066C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4066C2
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4066C2#FFFFFF#000000##FFFFFF
##4066C21.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3671C5
Deuteranopia (green-blind)
#1A65C0
Tritanopia (blue-blind)
#007B8A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4066c2;
/* rgb */ color: rgb(64, 102, 194);
/* oklch */ color: oklch(53.1% 0.150 264.9);
Tailwind
colors: {
  custom: {
    50: '#8391d5',
    500: '#4066c2',
    950: '#000000',
  },
}
SCSS
$custom: #4066c2;
$custom-light: #8391d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4066c2",
  "rgb": {
    "r": 64,
    "g": 102,
    "b": 194
  },
  "hsl": {
    "h": 222.462,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53106,
    "c": 0.1502,
    "h": 264.9
  },
  "luminance": 0.14488
}

Semantic roles & 50–950 ramp

primary
#4066C2
secondary
#CCBB92
accent
#B14DDB
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #4066C2

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

Preview Lab → · Contrast checker → · Palette generator →

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