#4070E3#4070E3

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

Color values

HEX#4070E3
RGBrgb(64, 112, 227)
HSLhsl(222, 74%, 57%)
HSVhsv(222, 72%, 89%)
CMYKcmyk(71.8%, 50.7%, 0%, 11%)
CIE-LABlab(49.76, 22.45, -63.26)
CIE-LCHlch(49.76, 67.13, 289.54°)
OKLaboklab(57.48% -0.018 -0.1819)
OKLCHoklch(57.48% 0.183 264.3)
XYZxyz(21.7688, 18.2221, 75.0281)
Luminance0.1822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070E3 #E3B340
analogous
#40C2E3 #4070E3 #6240E3
triadic
#4070E3 #E34070 #70E340
tetradic
#4070E3 #E340C2 #E3B340 #40E362
square
#4070E3 #E340C2 #E3B340 #40E362
split-complementary
#4070E3 #E36240 #C2E340
monochromatic
#163B93 #1D50C8 #4070E3 #7598EB #ABC0F3

Accessibility & contrast

On white

4.52
#4070E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#4070E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4070E3
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070E3#FFFFFF#000000##000000
##4070E31.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#287EE7
Deuteranopia (green-blind)
#006FE1
Tritanopia (blue-blind)
#008B9F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #4070e3;
/* rgb */ color: rgb(64, 112, 227);
/* oklch */ color: oklch(57.5% 0.183 264.3);
Tailwind
colors: {
  custom: {
    50: '#8998ec',
    500: '#4070e3',
    950: '#000000',
  },
}
SCSS
$custom: #4070e3;
$custom-light: #8998ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4070e3",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 227
  },
  "hsl": {
    "h": 222.331,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57483,
    "c": 0.18278,
    "h": 264.3
  },
  "luminance": 0.18224
}

Semantic roles & 50–950 ramp

primary
#4070E3
secondary
#E1CD9E
accent
#BA37F1
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4070E3

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

Preview Lab → · Contrast checker → · Palette generator →

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