#4070E2#4070E2

#4070E2 is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.4% C 0.181 H 264.3°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#4070E2
RGBrgb(64, 112, 226)
HSLhsl(222, 74%, 57%)
HSVhsv(222, 72%, 89%)
CMYKcmyk(71.7%, 50.4%, 0%, 11.4%)
CIE-LABlab(49.70, 22.09, -62.81)
CIE-LCHlch(49.70, 66.58, 289.38°)
OKLaboklab(57.41% -0.0181 -0.1805)
OKLCHoklch(57.41% 0.181 264.3)
XYZxyz(21.6311, 18.1670, 74.3033)
Luminance0.1817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070E2 #E2B240
analogous
#40C1E2 #4070E2 #6140E2
triadic
#4070E2 #E24070 #70E240
tetradic
#4070E2 #E240C1 #E2B240 #40E261
square
#4070E2 #E240C1 #E2B240 #40E261
split-complementary
#4070E2 #E26140 #C1E240
monochromatic
#163B92 #1E50C7 #4070E2 #7598EA #AAC0F2

Accessibility & contrast

On white

4.53
#4070E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#4070E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4070E2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070E2#FFFFFF#000000##000000
##4070E21.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#297EE6
Deuteranopia (green-blind)
#006FE0
Tritanopia (blue-blind)
#008B9E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #4070e2;
/* rgb */ color: rgb(64, 112, 226);
/* oklch */ color: oklch(57.4% 0.181 264.3);
Tailwind
colors: {
  custom: {
    50: '#8998ec',
    500: '#4070e2',
    950: '#000000',
  },
}
SCSS
$custom: #4070e2;
$custom-light: #8998ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4070e2",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 226
  },
  "hsl": {
    "h": 222.222,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.57411,
    "c": 0.18145,
    "h": 264.3
  },
  "luminance": 0.18169
}

Semantic roles & 50–950 ramp

primary
#4070E2
secondary
#E0CC9E
accent
#BA38F0
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4070E2

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

Preview Lab → · Contrast checker → · Palette generator →

#4070E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva