#4060B2#4060B2

#4060B2 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.7% C 0.135 H 265.8°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#4060B2
RGBrgb(64, 96, 178)
HSLhsl(223, 47%, 47%)
HSVhsv(223, 64%, 70%)
CMYKcmyk(64%, 46.1%, 0%, 30.2%)
CIE-LABlab(42.26, 15.00, -47.19)
CIE-LCHlch(42.26, 49.52, 287.63°)
OKLaboklab(50.75% -0.01 -0.1348)
OKLCHoklch(50.75% 0.135 265.8)
XYZxyz(14.3303, 12.6688, 43.8010)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4060B2 #B29240
analogous
#4099B2 #4060B2 #5940B2
triadic
#4060B2 #B24060 #60B240
tetradic
#4060B2 #B24099 #B29240 #40B259
square
#4060B2 #B24099 #B29240 #40B259
split-complementary
#4060B2 #B25940 #99B240
monochromatic
#202F58 #304885 #4060B2 #6782C8 #94A7D8

Accessibility & contrast

On white

5.94
#4060B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#4060B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4060B2
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4060B2#FFFFFF#000000##FFFFFF
##4060B21.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3869B5
Deuteranopia (green-blind)
#245FB0
Tritanopia (blue-blind)
#007380
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4060b2;
/* rgb */ color: rgb(64, 96, 178);
/* oklch */ color: oklch(50.7% 0.135 265.8);
Tailwind
colors: {
  custom: {
    50: '#808cc9',
    500: '#4060b2',
    950: '#000000',
  },
}
SCSS
$custom: #4060b2;
$custom-light: #808cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#4060b2",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 178
  },
  "hsl": {
    "h": 223.158,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50747,
    "c": 0.13522,
    "h": 265.8
  },
  "luminance": 0.1267
}

Semantic roles & 50–950 ramp

primary
#4060B2
secondary
#C4B48A
accent
#B151D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #4060B2

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

Preview Lab → · Contrast checker → · Palette generator →

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