#4060CE#4060CE

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

Color values

HEX#4060CE
RGBrgb(64, 96, 206)
HSLhsl(226, 59%, 53%)
HSVhsv(226, 69%, 81%)
CMYKcmyk(68.9%, 53.4%, 0%, 19.2%)
CIE-LABlab(44.10, 25.02, -60.47)
CIE-LCHlch(44.10, 65.45, 292.48°)
OKLaboklab(52.74% -0.0068 -0.1739)
OKLCHoklch(52.74% 0.174 267.8)
XYZxyz(17.4340, 13.9102, 60.1467)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4060CE #CEAE40
analogous
#40A7CE #4060CE #6740CE
triadic
#4060CE #CE4060 #60CE40
tetradic
#4060CE #CE40A7 #CEAE40 #40CE67
square
#4060CE #CE40A7 #CEAE40 #40CE67
split-complementary
#4060CE #CE6740 #A7CE40
monochromatic
#1E3275 #2B46A6 #4060CE #7189DA #A1B1E7

Accessibility & contrast

On white

5.55
#4060CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#4060CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4060CE
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4060CE#FFFFFF#000000##FFFFFF
##4060CE1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E6FD2
Deuteranopia (green-blind)
#0062CC
Tritanopia (blue-blind)
#007A8E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4060ce;
/* rgb */ color: rgb(64, 96, 206);
/* oklch */ color: oklch(52.7% 0.174 267.8);
Tailwind
colors: {
  custom: {
    50: '#858cde',
    500: '#4060ce',
    950: '#000000',
  },
}
SCSS
$custom: #4060ce;
$custom-light: #858cde;
$custom-dark: #000000;
JSON
{
  "hex": "#4060ce",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 206
  },
  "hsl": {
    "h": 226.479,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52739,
    "c": 0.17406,
    "h": 267.8
  },
  "luminance": 0.13912
}

Semantic roles & 50–950 ramp

primary
#4060CE
secondary
#D4C696
accent
#BF45E2
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4060CE

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

Preview Lab → · Contrast checker → · Palette generator →

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