#4062D5#4062D5

#4062D5 is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.7% C 0.181 H 267.5°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#4062D5
RGBrgb(64, 98, 213)
HSLhsl(226, 64%, 54%)
HSVhsv(226, 70%, 84%)
CMYKcmyk(70%, 54%, 0%, 16.5%)
CIE-LABlab(45.12, 26.26, -62.84)
CIE-LCHlch(45.12, 68.10, 292.68°)
OKLaboklab(53.66% -0.0079 -0.1808)
OKLCHoklch(53.66% 0.181 267.5)
XYZxyz(18.4881, 14.6276, 64.7869)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062D5 #D5B340
analogous
#40ACD5 #4062D5 #6940D5
triadic
#4062D5 #D54062 #62D540
tetradic
#4062D5 #D540AC #D5B340 #40D569
square
#4062D5 #D540AC #D5B340 #40D569
split-complementary
#4062D5 #D56940 #ACD540
monochromatic
#1C327F #2746B1 #4062D5 #728BE0 #A4B4EB

Accessibility & contrast

On white

5.35
#4062D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#4062D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4062D5#FFFFFF#000000##FFFFFF
##4062D51.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072D9
Deuteranopia (green-blind)
#0064D3
Tritanopia (blue-blind)
#007E92
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4062d5;
/* rgb */ color: rgb(64, 98, 213);
/* oklch */ color: oklch(53.7% 0.181 267.5);
Tailwind
colors: {
  custom: {
    50: '#878ee3',
    500: '#4062d5',
    950: '#000000',
  },
}
SCSS
$custom: #4062d5;
$custom-light: #878ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#4062d5",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 213
  },
  "hsl": {
    "h": 226.309,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.53661,
    "c": 0.18102,
    "h": 267.5
  },
  "luminance": 0.14629
}

Semantic roles & 50–950 ramp

primary
#4062D5
secondary
#D8CA99
accent
#C141E7
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0C15
muted
#7E7D84

Preview Lab

Preview with #4062D5

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

Preview Lab → · Contrast checker → · Palette generator →

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