#4066DB#4066DB

#4066DB is a mid, vivid blue. Relative luminance 0.157; OKLCH L 54.9% C 0.184 H 266.7°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#4066DB
RGBrgb(64, 102, 219)
HSLhsl(225, 68%, 55%)
HSVhsv(225, 71%, 86%)
CMYKcmyk(70.8%, 53.4%, 0%, 14.1%)
CIE-LABlab(46.59, 25.87, -63.88)
CIE-LCHlch(46.59, 68.92, 292.05°)
OKLaboklab(54.9% -0.0107 -0.1839)
OKLCHoklch(54.9% 0.184 266.7)
XYZxyz(19.6475, 15.7052, 69.0000)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4066DB #DBB540
analogous
#40B4DB #4066DB #6740DB
triadic
#4066DB #DB4066 #66DB40
tetradic
#4066DB #DB40B4 #DBB540 #40DB67
square
#4066DB #DB40B4 #DBB540 #40DB67
split-complementary
#4066DB #DB6740 #B4DB40
monochromatic
#193487 #2348BB #4066DB #738FE5 #A7B8EE

Accessibility & contrast

On white

5.07
#4066DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#4066DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4066DB
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4066DB#FFFFFF#000000##FFFFFF
##4066DB1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0876DF
Deuteranopia (green-blind)
#0068D9
Tritanopia (blue-blind)
#008297
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4066db;
/* rgb */ color: rgb(64, 102, 219);
/* oklch */ color: oklch(54.9% 0.184 266.7);
Tailwind
colors: {
  custom: {
    50: '#8891e7',
    500: '#4066db',
    950: '#000000',
  },
}
SCSS
$custom: #4066db;
$custom-light: #8891e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4066db",
  "rgb": {
    "r": 64,
    "g": 102,
    "b": 219
  },
  "hsl": {
    "h": 225.29,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.549,
    "c": 0.18417,
    "h": 266.7
  },
  "luminance": 0.15707
}

Semantic roles & 50–950 ramp

primary
#4066DB
secondary
#DCCC9B
accent
#C03DEB
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #4066DB

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

Preview Lab → · Contrast checker → · Palette generator →

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