#4060B7#4060B7

#4060B7 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.1% C 0.142 H 266.3°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#4060B7
RGBrgb(64, 96, 183)
HSLhsl(224, 48%, 48%)
HSVhsv(224, 65%, 72%)
CMYKcmyk(65%, 47.5%, 0%, 28.2%)
CIE-LABlab(42.57, 16.78, -49.62)
CIE-LCHlch(42.57, 52.38, 288.69°)
OKLaboklab(51.09% -0.0092 -0.142)
OKLCHoklch(51.09% 0.142 266.3)
XYZxyz(14.8415, 12.8733, 46.4932)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4060B7 #B79740
analogous
#409BB7 #4060B7 #5C40B7
triadic
#4060B7 #B74060 #60B740
tetradic
#4060B7 #B7409B #B79740 #40B75C
square
#4060B7 #B7409B #B79740 #40B75C
split-complementary
#4060B7 #B75C40 #9BB740
monochromatic
#20305C #30488A #4060B7 #6984CB #97A9DB

Accessibility & contrast

On white

5.87
#4060B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#4060B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4060B7
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4060B7#FFFFFF#000000##FFFFFF
##4060B71.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#346ABA
Deuteranopia (green-blind)
#1C5FB5
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4060b7;
/* rgb */ color: rgb(64, 96, 183);
/* oklch */ color: oklch(51.1% 0.142 266.3);
Tailwind
colors: {
  custom: {
    50: '#818ccd',
    500: '#4060b7',
    950: '#000000',
  },
}
SCSS
$custom: #4060b7;
$custom-light: #818ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#4060b7",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 183
  },
  "hsl": {
    "h": 223.866,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51086,
    "c": 0.14229,
    "h": 266.3
  },
  "luminance": 0.12875
}

Semantic roles & 50–950 ramp

primary
#4060B7
secondary
#C6B78D
accent
#B350D8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #4060B7

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

Preview Lab → · Contrast checker → · Palette generator →

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