#4062AA#4062AA

#4062AA is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.7% C 0.121 H 263.6°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#4062AA
RGBrgb(64, 98, 170)
HSLhsl(221, 45%, 46%)
HSVhsv(221, 62%, 67%)
CMYKcmyk(62.4%, 42.4%, 0%, 33.3%)
CIE-LABlab(42.35, 10.88, -42.35)
CIE-LCHlch(42.35, 43.72, 284.41°)
OKLaboklab(50.66% -0.0135 -0.1206)
OKLCHoklch(50.66% 0.121 263.6)
XYZxyz(13.7352, 12.7264, 39.7550)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062AA #AA8840
analogous
#4097AA #4062AA #5340AA
triadic
#4062AA #AA4062 #62AA40
tetradic
#4062AA #AA4097 #AA8840 #40AA53
square
#4062AA #AA4097 #AA8840 #40AA53
split-complementary
#4062AA #AA5340 #97AA40
monochromatic
#1F2F51 #2F487E #4062AA #6382C4 #8FA6D5

Accessibility & contrast

On white

5.92
#4062AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#4062AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4062AA#FFFFFF#000000##FFFFFF
##4062AA1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4269AD
Deuteranopia (green-blind)
#325FA8
Tritanopia (blue-blind)
#00727D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4062aa;
/* rgb */ color: rgb(64, 98, 170);
/* oklch */ color: oklch(50.7% 0.121 263.6);
Tailwind
colors: {
  custom: {
    50: '#7f8ec4',
    500: '#4062aa',
    950: '#000000',
  },
}
SCSS
$custom: #4062aa;
$custom-light: #7f8ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#4062aa",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 170
  },
  "hsl": {
    "h": 220.755,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50661,
    "c": 0.12135,
    "h": 263.6
  },
  "luminance": 0.12728
}

Semantic roles & 50–950 ramp

primary
#4062AA
secondary
#C0AD86
accent
#AB53D5
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C12
muted
#7C7D81

Preview Lab

Preview with #4062AA

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

Preview Lab → · Contrast checker → · Palette generator →

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