#4060BC#4060BC

#4060BC is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.4% C 0.149 H 266.7°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#4060BC
RGBrgb(64, 96, 188)
HSLhsl(225, 49%, 49%)
HSVhsv(225, 66%, 74%)
CMYKcmyk(66%, 48.9%, 0%, 26.3%)
CIE-LABlab(42.89, 18.57, -52.02)
CIE-LCHlch(42.89, 55.24, 289.65°)
OKLaboklab(51.43% -0.0086 -0.1491)
OKLCHoklch(51.43% 0.149 266.7)
XYZxyz(15.3712, 13.0851, 49.2828)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4060BC #BC9C40
analogous
#409EBC #4060BC #5E40BC
triadic
#4060BC #BC4060 #60BC40
tetradic
#4060BC #BC409E #BC9C40 #40BC5E
square
#4060BC #BC409E #BC9C40 #40BC5E
split-complementary
#4060BC #BC5E40 #9EBC40
monochromatic
#213161 #30498E #4060BC #6C85CD #9AABDD

Accessibility & contrast

On white

5.81
#4060BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#4060BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4060BC
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4060BC#FFFFFF#000000##FFFFFF
##4060BC1.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6BBF
Deuteranopia (green-blind)
#0F60BA
Tritanopia (blue-blind)
#007585
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4060bc;
/* rgb */ color: rgb(64, 96, 188);
/* oklch */ color: oklch(51.4% 0.149 266.7);
Tailwind
colors: {
  custom: {
    50: '#828cd1',
    500: '#4060bc',
    950: '#000000',
  },
}
SCSS
$custom: #4060bc;
$custom-light: #828cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#4060bc",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 188
  },
  "hsl": {
    "h": 224.516,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51433,
    "c": 0.14931,
    "h": 266.7
  },
  "luminance": 0.13087
}

Semantic roles & 50–950 ramp

primary
#4060BC
secondary
#C9BA8F
accent
#B54FD9
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C14
muted
#7D7D82

Preview Lab

Preview with #4060BC

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

Preview Lab → · Contrast checker → · Palette generator →

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