#4062C5#4062C5

#4062C5 is a mid, vivid blue. Relative luminance 0.139; OKLCH L 52.5% C 0.159 H 266.6°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#4062C5
RGBrgb(64, 98, 197)
HSLhsl(225, 53%, 51%)
HSVhsv(225, 68%, 77%)
CMYKcmyk(67.5%, 50.3%, 0%, 22.7%)
CIE-LABlab(44.02, 20.52, -55.42)
CIE-LCHlch(44.02, 59.09, 290.32°)
OKLaboklab(52.48% -0.0093 -0.159)
OKLCHoklch(52.48% 0.159 266.6)
XYZxyz(16.5566, 13.8550, 54.6142)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062C5 #C5A340
analogous
#40A4C5 #4062C5 #6040C5
triadic
#4062C5 #C54062 #62C540
tetradic
#4062C5 #C540A4 #C5A340 #40C560
square
#4062C5 #C540A4 #C5A340 #40C560
split-complementary
#4062C5 #C56040 #A4C540
monochromatic
#20336A #2F4A99 #4062C5 #6F89D3 #9EAFE2

Accessibility & contrast

On white

5.57
#4062C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#4062C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062C5
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062C5#FFFFFF#000000##FFFFFF
##4062C51.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#296EC9
Deuteranopia (green-blind)
#0062C3
Tritanopia (blue-blind)
#00798A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4062c5;
/* rgb */ color: rgb(64, 98, 197);
/* oklch */ color: oklch(52.5% 0.159 266.6);
Tailwind
colors: {
  custom: {
    50: '#848ed7',
    500: '#4062c5',
    950: '#000000',
  },
}
SCSS
$custom: #4062c5;
$custom-light: #848ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#4062c5",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 197
  },
  "hsl": {
    "h": 224.662,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52483,
    "c": 0.15929,
    "h": 266.6
  },
  "luminance": 0.13857
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4062C5

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

Preview Lab → · Contrast checker → · Palette generator →

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