#4062BC#4062BC

#4062BC is a mid, vivid blue. Relative luminance 0.135; OKLCH L 51.9% C 0.147 H 265.9°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#4062BC
RGBrgb(64, 98, 188)
HSLhsl(224, 49%, 49%)
HSVhsv(224, 66%, 74%)
CMYKcmyk(66%, 47.9%, 0%, 26.3%)
CIE-LABlab(43.44, 17.29, -51.14)
CIE-LCHlch(43.44, 53.98, 288.68°)
OKLaboklab(51.85% -0.0105 -0.1464)
OKLCHoklch(51.85% 0.147 265.9)
XYZxyz(15.5560, 13.4547, 49.3444)
Luminance0.1346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062BC #BC9A40
analogous
#40A0BC #4062BC #5C40BC
triadic
#4062BC #BC4062 #62BC40
tetradic
#4062BC #BC40A0 #BC9A40 #40BC5C
square
#4062BC #BC40A0 #BC9A40 #40BC5C
split-complementary
#4062BC #BC5C40 #A0BC40
monochromatic
#213261 #304A8E #4062BC #6C87CD #9AACDD

Accessibility & contrast

On white

5.69
#4062BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#4062BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062BC
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062BC#FFFFFF#000000##FFFFFF
##4062BC1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#336DBF
Deuteranopia (green-blind)
#1861BA
Tritanopia (blue-blind)
#007786
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4062bc;
/* rgb */ color: rgb(64, 98, 188);
/* oklch */ color: oklch(51.9% 0.147 265.9);
Tailwind
colors: {
  custom: {
    50: '#828ed1',
    500: '#4062bc',
    950: '#000000',
  },
}
SCSS
$custom: #4062bc;
$custom-light: #828ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#4062bc",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 188
  },
  "hsl": {
    "h": 223.548,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51852,
    "c": 0.1468,
    "h": 265.9
  },
  "luminance": 0.13456
}

Semantic roles & 50–950 ramp

primary
#4062BC
secondary
#C9B98F
accent
#B34FD9
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C14
muted
#7D7D82

Preview Lab

Preview with #4062BC

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

Preview Lab → · Contrast checker → · Palette generator →

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