#4060BB#4060BB

#4060BB is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.4% C 0.148 H 266.6°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#4060BB
RGBrgb(64, 96, 187)
HSLhsl(224, 49%, 49%)
HSVhsv(224, 66%, 73%)
CMYKcmyk(65.8%, 48.7%, 0%, 26.7%)
CIE-LABlab(42.83, 18.21, -51.54)
CIE-LCHlch(42.83, 54.67, 289.46°)
OKLaboklab(51.36% -0.0087 -0.1476)
OKLCHoklch(51.36% 0.148 266.6)
XYZxyz(15.2638, 13.0422, 48.7171)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4060BB #BB9B40
analogous
#409EBB #4060BB #5E40BB
triadic
#4060BB #BB4060 #60BB40
tetradic
#4060BB #BB409E #BB9B40 #40BB5E
square
#4060BB #BB409E #BB9B40 #40BB5E
split-complementary
#4060BB #BB5E40 #9EBB40
monochromatic
#213160 #30498D #4060BB #6C85CD #99ABDC

Accessibility & contrast

On white

5.82
#4060BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#4060BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4060BB
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4060BB#FFFFFF#000000##FFFFFF
##4060BB1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306BBE
Deuteranopia (green-blind)
#1260B9
Tritanopia (blue-blind)
#007584
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4060bb;
/* rgb */ color: rgb(64, 96, 187);
/* oklch */ color: oklch(51.4% 0.148 266.6);
Tailwind
colors: {
  custom: {
    50: '#828cd0',
    500: '#4060bb',
    950: '#000000',
  },
}
SCSS
$custom: #4060bb;
$custom-light: #828cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#4060bb",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 187
  },
  "hsl": {
    "h": 224.39,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51363,
    "c": 0.14791,
    "h": 266.6
  },
  "luminance": 0.13044
}

Semantic roles & 50–950 ramp

primary
#4060BB
secondary
#C8B98F
accent
#B54FD9
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #4060BB

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

Preview Lab → · Contrast checker → · Palette generator →

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