#4062CE#4062CE

#4062CE is a mid, vivid blue. Relative luminance 0.143; OKLCH L 53.1% C 0.172 H 267.2°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#4062CE
RGBrgb(64, 98, 206)
HSLhsl(226, 59%, 53%)
HSVhsv(226, 69%, 81%)
CMYKcmyk(68.9%, 52.4%, 0%, 19.2%)
CIE-LABlab(44.63, 23.75, -59.62)
CIE-LCHlch(44.63, 64.18, 291.72°)
OKLaboklab(53.14% -0.0085 -0.1714)
OKLCHoklch(53.14% 0.172 267.2)
XYZxyz(17.6188, 14.2798, 60.2083)
Luminance0.1428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062CE #CEAC40
analogous
#40A9CE #4062CE #6540CE
triadic
#4062CE #CE4062 #62CE40
tetradic
#4062CE #CE40A9 #CEAC40 #40CE65
square
#4062CE #CE40A9 #CEAC40 #40CE65
split-complementary
#4062CE #CE6540 #A9CE40
monochromatic
#1E3375 #2B48A6 #4062CE #718ADA #A1B2E7

Accessibility & contrast

On white

5.45
#4062CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#4062CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4062CE#FFFFFF#000000##FFFFFF
##4062CE1.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1970D2
Deuteranopia (green-blind)
#0063CC
Tritanopia (blue-blind)
#007C8E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4062ce;
/* rgb */ color: rgb(64, 98, 206);
/* oklch */ color: oklch(53.1% 0.172 267.2);
Tailwind
colors: {
  custom: {
    50: '#858ede',
    500: '#4062ce',
    950: '#000000',
  },
}
SCSS
$custom: #4062ce;
$custom-light: #858ede;
$custom-dark: #000000;
JSON
{
  "hex": "#4062ce",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 206
  },
  "hsl": {
    "h": 225.634,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53137,
    "c": 0.1716,
    "h": 267.2
  },
  "luminance": 0.14282
}

Semantic roles & 50–950 ramp

primary
#4062CE
secondary
#D4C596
accent
#BD45E2
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4062CE

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

Preview Lab → · Contrast checker → · Palette generator →

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