#4062D4#4062D4

#4062D4 is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.6% C 0.180 H 267.4°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#4062D4
RGBrgb(64, 98, 212)
HSLhsl(226, 63%, 54%)
HSVhsv(226, 70%, 83%)
CMYKcmyk(69.8%, 53.8%, 0%, 16.9%)
CIE-LABlab(45.05, 25.90, -62.38)
CIE-LCHlch(45.05, 67.54, 292.55°)
OKLaboklab(53.59% -0.008 -0.1795)
OKLCHoklch(53.59% 0.18 267.4)
XYZxyz(18.3616, 14.5770, 64.1205)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062D4 #D4B240
analogous
#40ACD4 #4062D4 #6840D4
triadic
#4062D4 #D44062 #62D440
tetradic
#4062D4 #D440AC #D4B240 #40D468
square
#4062D4 #D440AC #D4B240 #40D468
split-complementary
#4062D4 #D46840 #ACD440
monochromatic
#1C337D #2747AF #4062D4 #728BDF #A4B4EA

Accessibility & contrast

On white

5.36
#4062D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#4062D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4062D4#FFFFFF#000000##FFFFFF
##4062D41.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0572D8
Deuteranopia (green-blind)
#0064D2
Tritanopia (blue-blind)
#007D91
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4062d4;
/* rgb */ color: rgb(64, 98, 212);
/* oklch */ color: oklch(53.6% 0.180 267.4);
Tailwind
colors: {
  custom: {
    50: '#868ee2',
    500: '#4062d4',
    950: '#000000',
  },
}
SCSS
$custom: #4062d4;
$custom-light: #868ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#4062d4",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 212
  },
  "hsl": {
    "h": 226.216,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53585,
    "c": 0.17969,
    "h": 267.4
  },
  "luminance": 0.14579
}

Semantic roles & 50–950 ramp

primary
#4062D4
secondary
#D7C998
accent
#C042E6
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0D0C15
muted
#7D7D83

Preview Lab

Preview with #4062D4

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

Preview Lab → · Contrast checker → · Palette generator →

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