#4062DC#4062DC

#4062DC is a mid, vivid blue. Relative luminance 0.150; OKLCH L 54.2% C 0.190 H 267.7°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#4062DC
RGBrgb(64, 98, 220)
HSLhsl(227, 69%, 56%)
HSVhsv(227, 71%, 86%)
CMYKcmyk(70.9%, 55.5%, 0%, 13.7%)
CIE-LABlab(45.62, 28.76, -66.01)
CIE-LCHlch(45.62, 72.01, 293.54°)
OKLaboklab(54.2% -0.0075 -0.1902)
OKLCHoklch(54.2% 0.19 267.7)
XYZxyz(19.3958, 14.9907, 69.5676)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062DC #DCBA40
analogous
#40B0DC #4062DC #6C40DC
triadic
#4062DC #DC4062 #62DC40
tetradic
#4062DC #DC40B0 #DCBA40 #40DC6C
square
#4062DC #DC40B0 #DCBA40 #40DC6C
split-complementary
#4062DC #DC6C40 #B0DC40
monochromatic
#193189 #2344BC #4062DC #748DE5 #A7B7EF

Accessibility & contrast

On white

5.25
#4062DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#4062DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062DC
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062DC#FFFFFF#000000##FFFFFF
##4062DC1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E0
Deuteranopia (green-blind)
#0065DA
Tritanopia (blue-blind)
#008095
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4062dc;
/* rgb */ color: rgb(64, 98, 220);
/* oklch */ color: oklch(54.2% 0.190 267.7);
Tailwind
colors: {
  custom: {
    50: '#888ee8',
    500: '#4062dc',
    950: '#000000',
  },
}
SCSS
$custom: #4062dc;
$custom-light: #888ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#4062dc",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 220
  },
  "hsl": {
    "h": 226.923,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54197,
    "c": 0.19034,
    "h": 267.7
  },
  "luminance": 0.14993
}

Semantic roles & 50–950 ramp

primary
#4062DC
secondary
#DCCE9B
accent
#C63CEC
background
#F9F8FE
surface
#F1F0FD
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #4062DC

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

Preview Lab → · Contrast checker → · Palette generator →

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