#4060CB#4060CB

#4060CB is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.5% C 0.170 H 267.6°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#4060CB
RGBrgb(64, 96, 203)
HSLhsl(226, 57%, 52%)
HSVhsv(226, 68%, 80%)
CMYKcmyk(68.5%, 52.7%, 0%, 20.4%)
CIE-LABlab(43.90, 23.95, -59.09)
CIE-LCHlch(43.90, 63.76, 292.06°)
OKLaboklab(52.52% -0.007 -0.1698)
OKLCHoklch(52.52% 0.17 267.6)
XYZxyz(17.0730, 13.7658, 58.2457)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4060CB #CBAB40
analogous
#40A6CB #4060CB #6540CB
triadic
#4060CB #CB4060 #60CB40
tetradic
#4060CB #CB40A6 #CBAB40 #40CB65
square
#4060CB #CB40A6 #CBAB40 #40CB65
split-complementary
#4060CB #CB6540 #A6CB40
monochromatic
#1F3272 #2C47A2 #4060CB #7088D8 #A0B0E5

Accessibility & contrast

On white

5.59
#4060CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#4060CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4060CB
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4060CB#FFFFFF#000000##FFFFFF
##4060CB1.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176ECF
Deuteranopia (green-blind)
#0062C9
Tritanopia (blue-blind)
#007A8C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4060cb;
/* rgb */ color: rgb(64, 96, 203);
/* oklch */ color: oklch(52.5% 0.170 267.6);
Tailwind
colors: {
  custom: {
    50: '#858cdc',
    500: '#4060cb',
    950: '#000000',
  },
}
SCSS
$custom: #4060cb;
$custom-light: #858cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#4060cb",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 203
  },
  "hsl": {
    "h": 226.187,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.52515,
    "c": 0.16998,
    "h": 267.6
  },
  "luminance": 0.13768
}

Semantic roles & 50–950 ramp

primary
#4060CB
secondary
#D2C495
accent
#BD47E0
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4060CB

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

Preview Lab → · Contrast checker → · Palette generator →

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