#4070DF#4070DF

#4070DF is a mid, vivid blue. Relative luminance 0.180; OKLCH L 57.2% C 0.177 H 264.0°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#4070DF
RGBrgb(64, 112, 223)
HSLhsl(222, 71%, 56%)
HSVhsv(222, 71%, 87%)
CMYKcmyk(71.3%, 49.8%, 0%, 12.5%)
CIE-LABlab(49.50, 21.01, -61.43)
CIE-LCHlch(49.50, 64.93, 288.88°)
OKLaboklab(57.2% -0.0185 -0.1765)
OKLCHoklch(57.2% 0.177 264)
XYZxyz(21.2231, 18.0038, 72.1543)
Luminance0.1801 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070DF #DFAF40
analogous
#40BFDF #4070DF #6040DF
triadic
#4070DF #DF4070 #70DF40
tetradic
#4070DF #DF40BF #DFAF40 #40DF60
square
#4070DF #DF40BF #DFAF40 #40DF60
split-complementary
#4070DF #DF6040 #BFDF40
monochromatic
#183B8D #2051C1 #4070DF #7497E8 #A9BEF1

Accessibility & contrast

On white

4.56
#4070DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#4070DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4070DF
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070DF#FFFFFF#000000##000000
##4070DF1.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E7DE3
Deuteranopia (green-blind)
#006FDD
Tritanopia (blue-blind)
#008A9D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #4070df;
/* rgb */ color: rgb(64, 112, 223);
/* oklch */ color: oklch(57.2% 0.177 264.0);
Tailwind
colors: {
  custom: {
    50: '#8898ea',
    500: '#4070df',
    950: '#000000',
  },
}
SCSS
$custom: #4070df;
$custom-light: #8898ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4070df",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 223
  },
  "hsl": {
    "h": 221.887,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57198,
    "c": 0.17747,
    "h": 264
  },
  "luminance": 0.18006
}

Semantic roles & 50–950 ramp

primary
#4070DF
secondary
#DECA9D
accent
#B83AEE
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4070DF

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

Preview Lab → · Contrast checker → · Palette generator →

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