#4062C6#4062C6

#4062C6 is a mid, vivid blue. Relative luminance 0.139; OKLCH L 52.6% C 0.161 H 266.7°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#4062C6
RGBrgb(64, 98, 198)
HSLhsl(225, 54%, 51%)
HSVhsv(225, 68%, 78%)
CMYKcmyk(67.7%, 50.5%, 0%, 22.4%)
CIE-LABlab(44.09, 20.88, -55.89)
CIE-LCHlch(44.09, 59.66, 290.48°)
OKLaboklab(52.55% -0.0092 -0.1604)
OKLCHoklch(52.55% 0.161 266.7)
XYZxyz(16.6715, 13.9009, 55.2197)
Luminance0.1390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062C6 #C6A440
analogous
#40A5C6 #4062C6 #6140C6
triadic
#4062C6 #C64062 #62C640
tetradic
#4062C6 #C640A5 #C6A440 #40C661
square
#4062C6 #C640A5 #C6A440 #40C661
split-complementary
#4062C6 #C66140 #A5C640
monochromatic
#20336C #2E4A9B #4062C6 #6F89D4 #9EAFE2

Accessibility & contrast

On white

5.55
#4062C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#4062C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062C6
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062C6#FFFFFF#000000##FFFFFF
##4062C61.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#276FCA
Deuteranopia (green-blind)
#0062C4
Tritanopia (blue-blind)
#007A8B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4062c6;
/* rgb */ color: rgb(64, 98, 198);
/* oklch */ color: oklch(52.6% 0.161 266.7);
Tailwind
colors: {
  custom: {
    50: '#848ed8',
    500: '#4062c6',
    950: '#000000',
  },
}
SCSS
$custom: #4062c6;
$custom-light: #848ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#4062c6",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 198
  },
  "hsl": {
    "h": 224.776,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52555,
    "c": 0.16067,
    "h": 266.7
  },
  "luminance": 0.13903
}

Semantic roles & 50–950 ramp

primary
#4062C6
secondary
#CEBF93
accent
#B84ADD
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #4062C6

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

Preview Lab → · Contrast checker → · Palette generator →

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