#4060C7#4060C7

#4060C7 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.2% C 0.165 H 267.4°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#4060C7
RGBrgb(64, 96, 199)
HSLhsl(226, 55%, 52%)
HSVhsv(226, 68%, 78%)
CMYKcmyk(67.8%, 51.8%, 0%, 22%)
CIE-LABlab(43.62, 22.51, -57.22)
CIE-LCHlch(43.62, 61.49, 291.48°)
OKLaboklab(52.22% -0.0073 -0.1644)
OKLCHoklch(52.22% 0.165 267.4)
XYZxyz(16.6025, 13.5776, 55.7675)
Luminance0.1358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4060C7 #C7A740
analogous
#40A4C7 #4060C7 #6440C7
triadic
#4060C7 #C74060 #60C740
tetradic
#4060C7 #C740A4 #C7A740 #40C764
square
#4060C7 #C740A4 #C7A740 #40C764
split-complementary
#4060C7 #C76440 #A4C740
monochromatic
#20326D #2E489C #4060C7 #6F87D5 #9FAFE3

Accessibility & contrast

On white

5.65
#4060C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#4060C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4060C7
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4060C7#FFFFFF#000000##FFFFFF
##4060C71.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6ECB
Deuteranopia (green-blind)
#0061C5
Tritanopia (blue-blind)
#00788A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4060c7;
/* rgb */ color: rgb(64, 96, 199);
/* oklch */ color: oklch(52.2% 0.165 267.4);
Tailwind
colors: {
  custom: {
    50: '#848cd9',
    500: '#4060c7',
    950: '#000000',
  },
}
SCSS
$custom: #4060c7;
$custom-light: #848cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4060c7",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 199
  },
  "hsl": {
    "h": 225.778,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5222,
    "c": 0.16452,
    "h": 267.4
  },
  "luminance": 0.13579
}

Semantic roles & 50–950 ramp

primary
#4060C7
secondary
#CFC194
accent
#BB4ADE
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4060C7

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

Preview Lab → · Contrast checker → · Palette generator →

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