#4062C8#4062C8

#4062C8 is a mid, vivid blue. Relative luminance 0.140; OKLCH L 52.7% C 0.163 H 266.8°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#4062C8
RGBrgb(64, 98, 200)
HSLhsl(225, 55%, 52%)
HSVhsv(225, 68%, 78%)
CMYKcmyk(68%, 51%, 0%, 21.6%)
CIE-LABlab(44.22, 21.59, -56.83)
CIE-LCHlch(44.22, 60.79, 290.81°)
OKLaboklab(52.7% -0.009 -0.1632)
OKLCHoklch(52.7% 0.163 266.8)
XYZxyz(16.9037, 13.9938, 56.4426)
Luminance0.1399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062C8 #C8A640
analogous
#40A6C8 #4062C8 #6240C8
triadic
#4062C8 #C84062 #62C840
tetradic
#4062C8 #C840A6 #C8A640 #40C862
square
#4062C8 #C840A6 #C8A640 #40C862
split-complementary
#4062C8 #C86240 #A6C840
monochromatic
#20336E #2D499D #4062C8 #7089D6 #9FB0E3

Accessibility & contrast

On white

5.53
#4062C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#4062C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062C8
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062C8#FFFFFF#000000##FFFFFF
##4062C81.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#246FCC
Deuteranopia (green-blind)
#0063C6
Tritanopia (blue-blind)
#007A8B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4062c8;
/* rgb */ color: rgb(64, 98, 200);
/* oklch */ color: oklch(52.7% 0.163 266.8);
Tailwind
colors: {
  custom: {
    50: '#848ed9',
    500: '#4062c8',
    950: '#000000',
  },
}
SCSS
$custom: #4062c8;
$custom-light: #848ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#4062c8",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 200
  },
  "hsl": {
    "h": 225,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52699,
    "c": 0.16341,
    "h": 266.8
  },
  "luminance": 0.13995
}

Semantic roles & 50–950 ramp

primary
#4062C8
secondary
#D0C194
accent
#B949DF
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4062C8

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

Preview Lab → · Contrast checker → · Palette generator →

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