#4066D2#4066D2

#4066D2 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.2% C 0.172 H 266.2°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#4066D2
RGBrgb(64, 102, 210)
HSLhsl(224, 62%, 54%)
HSVhsv(224, 70%, 82%)
CMYKcmyk(69.5%, 51.4%, 0%, 17.6%)
CIE-LABlab(45.97, 22.64, -59.75)
CIE-LCHlch(45.97, 63.90, 290.75°)
OKLaboklab(54.24% -0.0115 -0.1717)
OKLCHoklch(54.24% 0.172 266.2)
XYZxyz(18.4945, 15.2440, 62.9280)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4066D2 #D2AC40
analogous
#40AFD2 #4066D2 #6340D2
triadic
#4066D2 #D24066 #66D240
tetradic
#4066D2 #D240AF #D2AC40 #40D263
square
#4066D2 #D240AF #D2AC40 #40D263
split-complementary
#4066D2 #D26340 #AFD240
monochromatic
#1D357B #294BAC #4066D2 #728EDE #A3B5E9

Accessibility & contrast

On white

5.19
#4066D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#4066D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4066D2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4066D2#FFFFFF#000000##FFFFFF
##4066D21.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2274D6
Deuteranopia (green-blind)
#0067D0
Tritanopia (blue-blind)
#008092
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4066d2;
/* rgb */ color: rgb(64, 102, 210);
/* oklch */ color: oklch(54.2% 0.172 266.2);
Tailwind
colors: {
  custom: {
    50: '#8691e0',
    500: '#4066d2',
    950: '#000000',
  },
}
SCSS
$custom: #4066d2;
$custom-light: #8691e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4066d2",
  "rgb": {
    "r": 64,
    "g": 102,
    "b": 210
  },
  "hsl": {
    "h": 224.384,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54235,
    "c": 0.17211,
    "h": 266.2
  },
  "luminance": 0.15246
}

Semantic roles & 50–950 ramp

primary
#4066D2
secondary
#D6C698
accent
#BB43E5
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4066D2

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

Preview Lab → · Contrast checker → · Palette generator →

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