#4060CD#4060CD

#4060CD is a mid, vivid blue. Relative luminance 0.139; OKLCH L 52.7% C 0.173 H 267.7°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#4060CD
RGBrgb(64, 96, 205)
HSLhsl(226, 59%, 53%)
HSVhsv(226, 69%, 80%)
CMYKcmyk(68.8%, 53.2%, 0%, 19.6%)
CIE-LABlab(44.03, 24.66, -60.01)
CIE-LCHlch(44.03, 64.88, 292.34°)
OKLaboklab(52.66% -0.0068 -0.1726)
OKLCHoklch(52.66% 0.173 267.7)
XYZxyz(17.3129, 13.8618, 59.5090)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4060CD #CDAD40
analogous
#40A6CD #4060CD #6640CD
triadic
#4060CD #CD4060 #60CD40
tetradic
#4060CD #CD40A6 #CDAD40 #40CD66
square
#4060CD #CD40A6 #CDAD40 #40CD66
split-complementary
#4060CD #CD6640 #A6CD40
monochromatic
#1E3274 #2B47A5 #4060CD #7188DA #A1B1E6

Accessibility & contrast

On white

5.57
#4060CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#4060CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4060CD
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4060CD#FFFFFF#000000##FFFFFF
##4060CD1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126FD1
Deuteranopia (green-blind)
#0062CB
Tritanopia (blue-blind)
#007A8D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4060cd;
/* rgb */ color: rgb(64, 96, 205);
/* oklch */ color: oklch(52.7% 0.173 267.7);
Tailwind
colors: {
  custom: {
    50: '#858cdd',
    500: '#4060cd',
    950: '#000000',
  },
}
SCSS
$custom: #4060cd;
$custom-light: #858cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#4060cd",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 205
  },
  "hsl": {
    "h": 226.383,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52664,
    "c": 0.17271,
    "h": 267.7
  },
  "luminance": 0.13864
}

Semantic roles & 50–950 ramp

primary
#4060CD
secondary
#D3C596
accent
#BE46E2
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4060CD

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

Preview Lab → · Contrast checker → · Palette generator →

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