#4062BF#4062BF

#4062BF is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.1% C 0.151 H 266.2°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#4062BF
RGBrgb(64, 98, 191)
HSLhsl(224, 50%, 50%)
HSVhsv(224, 66%, 75%)
CMYKcmyk(66.5%, 48.7%, 0%, 25.1%)
CIE-LABlab(43.63, 18.36, -52.57)
CIE-LCHlch(43.63, 55.69, 289.25°)
OKLaboklab(52.06% -0.0101 -0.1506)
OKLCHoklch(52.06% 0.151 266.2)
XYZxyz(15.8827, 13.5854, 51.0653)
Luminance0.1359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062BF #BF9D40
analogous
#40A2BF #4062BF #5D40BF
triadic
#4062BF #BF4062 #62BF40
tetradic
#4062BF #BF40A2 #BF9D40 #40BF5D
square
#4062BF #BF40A2 #BF9D40 #40BF5D
split-complementary
#4062BF #BF5D40 #A2BF40
monochromatic
#213363 #314A91 #4062BF #6E88CE #9CADDE

Accessibility & contrast

On white

5.65
#4062BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#4062BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062BF
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062BF#FFFFFF#000000##FFFFFF
##4062BF1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306DC2
Deuteranopia (green-blind)
#1062BD
Tritanopia (blue-blind)
#007887
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4062bf;
/* rgb */ color: rgb(64, 98, 191);
/* oklch */ color: oklch(52.1% 0.151 266.2);
Tailwind
colors: {
  custom: {
    50: '#828ed3',
    500: '#4062bf',
    950: '#000000',
  },
}
SCSS
$custom: #4062bf;
$custom-light: #828ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#4062bf",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 191
  },
  "hsl": {
    "h": 223.937,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.5206,
    "c": 0.15099,
    "h": 266.2
  },
  "luminance": 0.13587
}

Semantic roles & 50–950 ramp

primary
#4062BF
secondary
#CABB91
accent
#B44ED9
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #4062BF

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

Preview Lab → · Contrast checker → · Palette generator →

#4062BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva