#4062CC#4062CC

#4062CC is a mid, vivid blue. Relative luminance 0.142; OKLCH L 53.0% C 0.169 H 267.1°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#4062CC
RGBrgb(64, 98, 204)
HSLhsl(225, 58%, 53%)
HSVhsv(225, 69%, 80%)
CMYKcmyk(68.6%, 52%, 0%, 20%)
CIE-LABlab(44.49, 23.03, -58.69)
CIE-LCHlch(44.49, 63.05, 291.42°)
OKLaboklab(52.99% -0.0086 -0.1687)
OKLCHoklch(52.99% 0.169 267.1)
XYZxyz(17.3773, 14.1833, 58.9369)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062CC #CCAA40
analogous
#40A8CC #4062CC #6440CC
triadic
#4062CC #CC4062 #62CC40
tetradic
#4062CC #CC40A8 #CCAA40 #40CC64
square
#4062CC #CC40A8 #CCAA40 #40CC64
split-complementary
#4062CC #CC6440 #A8CC40
monochromatic
#1F3373 #2C49A3 #4062CC #708AD9 #A1B1E6

Accessibility & contrast

On white

5.47
#4062CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#4062CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062CC
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062CC#FFFFFF#000000##FFFFFF
##4062CC1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E70D0
Deuteranopia (green-blind)
#0063CA
Tritanopia (blue-blind)
#007B8D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4062cc;
/* rgb */ color: rgb(64, 98, 204);
/* oklch */ color: oklch(53.0% 0.169 267.1);
Tailwind
colors: {
  custom: {
    50: '#858edc',
    500: '#4062cc',
    950: '#000000',
  },
}
SCSS
$custom: #4062cc;
$custom-light: #858edc;
$custom-dark: #000000;
JSON
{
  "hex": "#4062cc",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 204
  },
  "hsl": {
    "h": 225.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.5299,
    "c": 0.16888,
    "h": 267.1
  },
  "luminance": 0.14185
}

Semantic roles & 50–950 ramp

primary
#4062CC
secondary
#D2C495
accent
#BC47E1
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4062CC

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

Preview Lab → · Contrast checker → · Palette generator →

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