#4062D1#4062D1

#4062D1 is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.4% C 0.176 H 267.3°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#4062D1
RGBrgb(64, 98, 209)
HSLhsl(226, 61%, 54%)
HSVhsv(226, 69%, 82%)
CMYKcmyk(69.4%, 53.1%, 0%, 18%)
CIE-LABlab(44.84, 24.82, -61.01)
CIE-LCHlch(44.84, 65.86, 292.14°)
OKLaboklab(53.36% -0.0082 -0.1755)
OKLCHoklch(53.36% 0.176 267.3)
XYZxyz(17.9867, 14.4270, 62.1460)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062D1 #D1AF40
analogous
#40AAD1 #4062D1 #6640D1
triadic
#4062D1 #D14062 #62D140
tetradic
#4062D1 #D140AA #D1AF40 #40D166
square
#4062D1 #D140AA #D1AF40 #40D166
split-complementary
#4062D1 #D16640 #AAD140
monochromatic
#1D3379 #2947AB #4062D1 #718BDD #A3B3E9

Accessibility & contrast

On white

5.40
#4062D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#4062D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062D1
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062D1#FFFFFF#000000##FFFFFF
##4062D11.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1171D5
Deuteranopia (green-blind)
#0064CF
Tritanopia (blue-blind)
#007D90
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4062d1;
/* rgb */ color: rgb(64, 98, 209);
/* oklch */ color: oklch(53.4% 0.176 267.3);
Tailwind
colors: {
  custom: {
    50: '#868ee0',
    500: '#4062d1',
    950: '#000000',
  },
}
SCSS
$custom: #4062d1;
$custom-light: #868ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#4062d1",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 209
  },
  "hsl": {
    "h": 225.931,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5336,
    "c": 0.17565,
    "h": 267.3
  },
  "luminance": 0.14429
}

Semantic roles & 50–950 ramp

primary
#4062D1
secondary
#D5C797
accent
#BF44E4
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4062D1

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

Preview Lab → · Contrast checker → · Palette generator →

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