#4060D9#4060D9

#4060D9 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.6% C 0.189 H 268.1°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#4060D9
RGBrgb(64, 96, 217)
HSLhsl(227, 67%, 55%)
HSVhsv(227, 71%, 85%)
CMYKcmyk(70.5%, 55.8%, 0%, 14.9%)
CIE-LABlab(44.89, 28.95, -65.49)
CIE-LCHlch(44.89, 71.61, 293.85°)
OKLaboklab(53.58% -0.0061 -0.1887)
OKLCHoklch(53.58% 0.189 268.1)
XYZxyz(18.8173, 14.4636, 67.4322)
Luminance0.1447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4060D9 #D9B940
analogous
#40ACD9 #4060D9 #6D40D9
triadic
#4060D9 #D94060 #60D940
tetradic
#4060D9 #D940AC #D9B940 #40D96D
square
#4060D9 #D940AC #D9B940 #40D96D
split-complementary
#4060D9 #D96D40 #ACD940
monochromatic
#1A3084 #2443B7 #4060D9 #738AE3 #A6B5ED

Accessibility & contrast

On white

5.39
#4060D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#4060D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4060D9
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4060D9#FFFFFF#000000##FFFFFF
##4060D91.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#0063D7
Tritanopia (blue-blind)
#007E93
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4060d9;
/* rgb */ color: rgb(64, 96, 217);
/* oklch */ color: oklch(53.6% 0.189 268.1);
Tailwind
colors: {
  custom: {
    50: '#888ce6',
    500: '#4060d9',
    950: '#000000',
  },
}
SCSS
$custom: #4060d9;
$custom-light: #888ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#4060d9",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 217
  },
  "hsl": {
    "h": 227.451,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.53579,
    "c": 0.18879,
    "h": 268.1
  },
  "luminance": 0.14465
}

Semantic roles & 50–950 ramp

primary
#4060D9
secondary
#DACD9A
accent
#C63EEA
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #4060D9

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

Preview Lab → · Contrast checker → · Palette generator →

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