#4066DF#4066DF

#4066DF is a mid, vivid blue. Relative luminance 0.159; OKLCH L 55.2% C 0.189 H 266.8°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#4066DF
RGBrgb(64, 102, 223)
HSLhsl(226, 71%, 56%)
HSVhsv(226, 71%, 87%)
CMYKcmyk(71.3%, 54.3%, 0%, 12.5%)
CIE-LABlab(46.87, 27.31, -65.69)
CIE-LCHlch(46.87, 71.14, 292.57°)
OKLaboklab(55.2% -0.0105 -0.1892)
OKLCHoklch(55.2% 0.189 266.8)
XYZxyz(20.1804, 15.9183, 71.8067)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4066DF #DFB940
analogous
#40B6DF #4066DF #6A40DF
triadic
#4066DF #DF4066 #66DF40
tetradic
#4066DF #DF40B6 #DFB940 #40DF6A
square
#4066DF #DF40B6 #DFB940 #40DF6A
split-complementary
#4066DF #DF6A40 #B6DF40
monochromatic
#18348D #2047C1 #4066DF #7490E8 #A9BAF1

Accessibility & contrast

On white

5.02
#4066DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#4066DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4066DF
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4066DF#FFFFFF#000000##FFFFFF
##4066DF1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E3
Deuteranopia (green-blind)
#0068DD
Tritanopia (blue-blind)
#008399
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4066df;
/* rgb */ color: rgb(64, 102, 223);
/* oklch */ color: oklch(55.2% 0.189 266.8);
Tailwind
colors: {
  custom: {
    50: '#8891ea',
    500: '#4066df',
    950: '#000000',
  },
}
SCSS
$custom: #4066df;
$custom-light: #8891ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4066df",
  "rgb": {
    "r": 64,
    "g": 102,
    "b": 223
  },
  "hsl": {
    "h": 225.66,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55202,
    "c": 0.18948,
    "h": 266.8
  },
  "luminance": 0.1592
}

Semantic roles & 50–950 ramp

primary
#4066DF
secondary
#DECE9D
accent
#C33AEE
background
#F9F8FE
surface
#F1F0FD
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #4066DF

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

Preview Lab → · Contrast checker → · Palette generator →

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