#4062AE#4062AE

#4062AE is a mid, vivid blue. Relative luminance 0.129; OKLCH L 50.9% C 0.127 H 264.2°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#4062AE
RGBrgb(64, 98, 174)
HSLhsl(221, 46%, 47%)
HSVhsv(221, 63%, 68%)
CMYKcmyk(63.2%, 43.7%, 0%, 31.8%)
CIE-LABlab(42.58, 12.30, -44.33)
CIE-LCHlch(42.58, 46.00, 285.51°)
OKLaboklab(50.92% -0.0127 -0.1264)
OKLCHoklch(50.92% 0.127 264.2)
XYZxyz(14.1194, 12.8801, 41.7782)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062AE #AE8C40
analogous
#4099AE #4062AE #5540AE
triadic
#4062AE #AE4062 #62AE40
tetradic
#4062AE #AE4099 #AE8C40 #40AE55
square
#4062AE #AE4099 #AE8C40 #40AE55
split-complementary
#4062AE #AE5540 #99AE40
monochromatic
#1F3055 #304981 #4062AE #6583C6 #92A7D7

Accessibility & contrast

On white

5.87
#4062AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#4062AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062AE
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062AE#FFFFFF#000000##FFFFFF
##4062AE1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6AB1
Deuteranopia (green-blind)
#2E60AC
Tritanopia (blue-blind)
#00737F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4062ae;
/* rgb */ color: rgb(64, 98, 174);
/* oklch */ color: oklch(50.9% 0.127 264.2);
Tailwind
colors: {
  custom: {
    50: '#7f8ec6',
    500: '#4062ae',
    950: '#000000',
  },
}
SCSS
$custom: #4062ae;
$custom-light: #7f8ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#4062ae",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 174
  },
  "hsl": {
    "h": 221.455,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50917,
    "c": 0.12705,
    "h": 264.2
  },
  "luminance": 0.12881
}

Semantic roles & 50–950 ramp

primary
#4062AE
secondary
#C2B088
accent
#AD52D6
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #4062AE

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

Preview Lab → · Contrast checker → · Palette generator →

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