#4060D6#4060D6

#4060D6 is a mid, vivid blue. Relative luminance 0.143; OKLCH L 53.3% C 0.185 H 268.1°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#4060D6
RGBrgb(64, 96, 214)
HSLhsl(227, 65%, 55%)
HSVhsv(227, 70%, 84%)
CMYKcmyk(70.1%, 55.1%, 0%, 16.1%)
CIE-LABlab(44.67, 27.88, -64.14)
CIE-LCHlch(44.67, 69.93, 293.50°)
OKLaboklab(53.35% -0.0063 -0.1847)
OKLCHoklch(53.35% 0.185 268.1)
XYZxyz(18.4306, 14.3089, 65.3959)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4060D6 #D6B640
analogous
#40ABD6 #4060D6 #6B40D6
triadic
#4060D6 #D64060 #60D640
tetradic
#4060D6 #D640AB #D6B640 #40D66B
square
#4060D6 #D640AB #D6B640 #40D66B
split-complementary
#4060D6 #D66B40 #ABD640
monochromatic
#1B3180 #2644B2 #4060D6 #728AE1 #A5B4EC

Accessibility & contrast

On white

5.44
#4060D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#4060D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4060D6
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4060D6#FFFFFF#000000##FFFFFF
##4060D61.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DA
Deuteranopia (green-blind)
#0063D4
Tritanopia (blue-blind)
#007D92
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4060d6;
/* rgb */ color: rgb(64, 96, 214);
/* oklch */ color: oklch(53.3% 0.185 268.1);
Tailwind
colors: {
  custom: {
    50: '#878ce3',
    500: '#4060d6',
    950: '#000000',
  },
}
SCSS
$custom: #4060d6;
$custom-light: #878ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#4060d6",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 214
  },
  "hsl": {
    "h": 227.2,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.53347,
    "c": 0.18481,
    "h": 268.1
  },
  "luminance": 0.14311
}

Semantic roles & 50–950 ramp

primary
#4060D6
secondary
#D9CB99
accent
#C440E8
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #4060D6

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

Preview Lab → · Contrast checker → · Palette generator →

#4060D6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva