#4062E6#4062E6

#4062E6 is a mid, highly saturated blue. Relative luminance 0.155; OKLCH L 55.0% C 0.203 H 268.0°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#4062E6
RGBrgb(64, 98, 230)
HSLhsl(228, 77%, 58%)
HSVhsv(228, 72%, 90%)
CMYKcmyk(72.2%, 57.4%, 0%, 9.8%)
CIE-LABlab(46.36, 32.32, -70.48)
CIE-LCHlch(46.36, 77.54, 294.64°)
OKLaboklab(54.98% -0.0071 -0.2033)
OKLCHoklch(54.98% 0.203 268)
XYZxyz(20.7600, 15.5363, 76.7523)
Luminance0.1554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062E6 #E6C440
analogous
#40B5E6 #4062E6 #7140E6
triadic
#4062E6 #E64062 #62E640
tetradic
#4062E6 #E640B5 #E6C440 #40E671
square
#4062E6 #E640B5 #E6C440 #40E671
split-complementary
#4062E6 #E67140 #B5E640
monochromatic
#142F98 #1B40CE #4062E6 #768EED #ACBBF4

Accessibility & contrast

On white

5.11
#4062E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#4062E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4062E6#FFFFFF#000000##FFFFFF
##4062E61.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EA
Deuteranopia (green-blind)
#0066E3
Tritanopia (blue-blind)
#00839A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4062e6;
/* rgb */ color: rgb(64, 98, 230);
/* oklch */ color: oklch(55.0% 0.203 268.0);
Tailwind
colors: {
  custom: {
    50: '#8a8eef',
    500: '#4062e6',
    950: '#000000',
  },
}
SCSS
$custom: #4062e6;
$custom-light: #8a8eef;
$custom-dark: #000000;
JSON
{
  "hex": "#4062e6",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 230
  },
  "hsl": {
    "h": 227.711,
    "s": 76.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.54982,
    "c": 0.20344,
    "h": 268
  },
  "luminance": 0.15539
}

Semantic roles & 50–950 ramp

primary
#4062E6
secondary
#E2D59F
accent
#CC34F3
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0D0C17
muted
#7E7D85

Preview Lab

Preview with #4062E6

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

Preview Lab → · Contrast checker → · Palette generator →

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