#4062C2#4062C2

#4062C2 is a mid, vivid blue. Relative luminance 0.137; OKLCH L 52.3% C 0.155 H 266.4°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#4062C2
RGBrgb(64, 98, 194)
HSLhsl(224, 52%, 51%)
HSVhsv(224, 67%, 76%)
CMYKcmyk(67%, 49.5%, 0%, 23.9%)
CIE-LABlab(43.83, 19.44, -54.00)
CIE-LCHlch(43.83, 57.39, 289.80°)
OKLaboklab(52.27% -0.0097 -0.1548)
OKLCHoklch(52.27% 0.155 266.4)
XYZxyz(16.2163, 13.7188, 52.8219)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062C2 #C2A040
analogous
#40A3C2 #4062C2 #5F40C2
triadic
#4062C2 #C24062 #62C240
tetradic
#4062C2 #C240A3 #C2A040 #40C25F
square
#4062C2 #C240A3 #C2A040 #40C25F
split-complementary
#4062C2 #C25F40 #A3C240
monochromatic
#213367 #304A95 #4062C2 #6E88D1 #9DAEE0

Accessibility & contrast

On white

5.61
#4062C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#4062C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062C2
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062C2#FFFFFF#000000##FFFFFF
##4062C21.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6EC5
Deuteranopia (green-blind)
#0362C0
Tritanopia (blue-blind)
#007889
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4062c2;
/* rgb */ color: rgb(64, 98, 194);
/* oklch */ color: oklch(52.3% 0.155 266.4);
Tailwind
colors: {
  custom: {
    50: '#838ed5',
    500: '#4062c2',
    950: '#000000',
  },
}
SCSS
$custom: #4062c2;
$custom-light: #838ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#4062c2",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 194
  },
  "hsl": {
    "h": 224.308,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5227,
    "c": 0.15515,
    "h": 266.4
  },
  "luminance": 0.1372
}

Semantic roles & 50–950 ramp

primary
#4062C2
secondary
#CCBD92
accent
#B64DDB
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #4062C2

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

Preview Lab → · Contrast checker → · Palette generator →

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