#4062AF#4062AF

#4062AF is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.0% C 0.128 H 264.4°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#4062AF
RGBrgb(64, 98, 175)
HSLhsl(222, 46%, 47%)
HSVhsv(222, 63%, 69%)
CMYKcmyk(63.4%, 44%, 0%, 31.4%)
CIE-LABlab(42.64, 12.65, -44.82)
CIE-LCHlch(42.64, 46.57, 285.76°)
OKLaboklab(50.98% -0.0126 -0.1279)
OKLCHoklch(50.98% 0.128 264.4)
XYZxyz(14.2172, 12.9192, 42.2936)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062AF #AF8D40
analogous
#409AAF #4062AF #5640AF
triadic
#4062AF #AF4062 #62AF40
tetradic
#4062AF #AF409A #AF8D40 #40AF56
square
#4062AF #AF409A #AF8D40 #40AF56
split-complementary
#4062AF #AF5640 #9AAF40
monochromatic
#1F3055 #304982 #4062AF #6583C7 #92A7D7

Accessibility & contrast

On white

5.86
#4062AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4062AF
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062AF#FFFFFF#000000##FFFFFF
##4062AF1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6AB2
Deuteranopia (green-blind)
#2D60AD
Tritanopia (blue-blind)
#007380
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4062af;
/* rgb */ color: rgb(64, 98, 175);
/* oklch */ color: oklch(51.0% 0.128 264.4);
Tailwind
colors: {
  custom: {
    50: '#7f8ec7',
    500: '#4062af',
    950: '#000000',
  },
}
SCSS
$custom: #4062af;
$custom-light: #7f8ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#4062af",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 175
  },
  "hsl": {
    "h": 221.622,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50981,
    "c": 0.12848,
    "h": 264.4
  },
  "luminance": 0.1292
}

Semantic roles & 50–950 ramp

primary
#4062AF
secondary
#C3B188
accent
#AE52D6
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #4062AF

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

Preview Lab → · Contrast checker → · Palette generator →

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