#4062D9#4062D9

#4062D9 is a mid, vivid blue. Relative luminance 0.148; OKLCH L 54.0% C 0.186 H 267.6°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#4062D9
RGBrgb(64, 98, 217)
HSLhsl(227, 67%, 55%)
HSVhsv(227, 71%, 85%)
CMYKcmyk(70.5%, 54.8%, 0%, 14.9%)
CIE-LABlab(45.40, 27.69, -64.66)
CIE-LCHlch(45.40, 70.34, 293.18°)
OKLaboklab(53.97% -0.0077 -0.1862)
OKLCHoklch(53.97% 0.186 267.6)
XYZxyz(19.0021, 14.8332, 67.4938)
Luminance0.1484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062D9 #D9B740
analogous
#40AED9 #4062D9 #6B40D9
triadic
#4062D9 #D94062 #62D940
tetradic
#4062D9 #D940AE #D9B740 #40D96B
square
#4062D9 #D940AE #D9B740 #40D96B
split-complementary
#4062D9 #D96B40 #AED940
monochromatic
#1A3284 #2445B7 #4062D9 #738CE3 #A6B6ED

Accessibility & contrast

On white

5.29
#4062D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#4062D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062D9
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062D9#FFFFFF#000000##FFFFFF
##4062D91.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DD
Deuteranopia (green-blind)
#0065D7
Tritanopia (blue-blind)
#007F94
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4062d9;
/* rgb */ color: rgb(64, 98, 217);
/* oklch */ color: oklch(54.0% 0.186 267.6);
Tailwind
colors: {
  custom: {
    50: '#878ee6',
    500: '#4062d9',
    950: '#000000',
  },
}
SCSS
$custom: #4062d9;
$custom-light: #878ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#4062d9",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 217
  },
  "hsl": {
    "h": 226.667,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.53966,
    "c": 0.18637,
    "h": 267.6
  },
  "luminance": 0.14835
}

Semantic roles & 50–950 ramp

primary
#4062D9
secondary
#DACC9A
accent
#C43EEA
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #4062D9

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

Preview Lab → · Contrast checker → · Palette generator →

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