#4062D2#4062D2

#4062D2 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.4% C 0.177 H 267.4°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#4062D2
RGBrgb(64, 98, 210)
HSLhsl(226, 62%, 54%)
HSVhsv(226, 70%, 82%)
CMYKcmyk(69.5%, 53.3%, 0%, 17.6%)
CIE-LABlab(44.91, 25.18, -61.47)
CIE-LCHlch(44.91, 66.42, 292.28°)
OKLaboklab(53.44% -0.0081 -0.1768)
OKLCHoklch(53.44% 0.177 267.4)
XYZxyz(18.1109, 14.4767, 62.8001)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062D2 #D2B040
analogous
#40ABD2 #4062D2 #6740D2
triadic
#4062D2 #D24062 #62D240
tetradic
#4062D2 #D240AB #D2B040 #40D267
square
#4062D2 #D240AB #D2B040 #40D267
split-complementary
#4062D2 #D26740 #ABD240
monochromatic
#1D337B #2947AC #4062D2 #728BDE #A3B3E9

Accessibility & contrast

On white

5.39
#4062D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#4062D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4062D2#FFFFFF#000000##FFFFFF
##4062D21.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E71D6
Deuteranopia (green-blind)
#0064D0
Tritanopia (blue-blind)
#007D90
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4062d2;
/* rgb */ color: rgb(64, 98, 210);
/* oklch */ color: oklch(53.4% 0.177 267.4);
Tailwind
colors: {
  custom: {
    50: '#868ee1',
    500: '#4062d2',
    950: '#000000',
  },
}
SCSS
$custom: #4062d2;
$custom-light: #868ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#4062d2",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 210
  },
  "hsl": {
    "h": 226.027,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53435,
    "c": 0.177,
    "h": 267.4
  },
  "luminance": 0.14478
}

Semantic roles & 50–950 ramp

primary
#4062D2
secondary
#D6C898
accent
#BF43E5
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0D0C15
muted
#7D7D83

Preview Lab

Preview with #4062D2

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

Preview Lab → · Contrast checker → · Palette generator →

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