#4070DC#4070DC

#4070DC is a mid, vivid blue. Relative luminance 0.178; OKLCH L 57.0% C 0.173 H 263.8°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#4070DC
RGBrgb(64, 112, 220)
HSLhsl(222, 69%, 56%)
HSVhsv(222, 71%, 86%)
CMYKcmyk(70.9%, 49.1%, 0%, 13.7%)
CIE-LABlab(49.31, 19.93, -60.05)
CIE-LCHlch(49.31, 63.27, 288.36°)
OKLaboklab(56.99% -0.0188 -0.1724)
OKLCHoklch(56.99% 0.173 263.8)
XYZxyz(20.8222, 17.8434, 70.0430)
Luminance0.1785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070DC #DCAC40
analogous
#40BEDC #4070DC #5E40DC
triadic
#4070DC #DC4070 #70DC40
tetradic
#4070DC #DC40BE #DCAC40 #40DC5E
square
#4070DC #DC40BE #DCAC40 #40DC5E
split-complementary
#4070DC #DC5E40 #BEDC40
monochromatic
#193B89 #2352BC #4070DC #7497E5 #A7BDEF

Accessibility & contrast

On white

4.60
#4070DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#4070DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4070DC
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070DC#FFFFFF#000000##FFFFFF
##4070DC1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#327DE0
Deuteranopia (green-blind)
#006EDA
Tritanopia (blue-blind)
#008A9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4070dc;
/* rgb */ color: rgb(64, 112, 220);
/* oklch */ color: oklch(57.0% 0.173 263.8);
Tailwind
colors: {
  custom: {
    50: '#8798e7',
    500: '#4070dc',
    950: '#000000',
  },
}
SCSS
$custom: #4070dc;
$custom-light: #8798e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4070dc",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 220
  },
  "hsl": {
    "h": 221.538,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56987,
    "c": 0.17347,
    "h": 263.8
  },
  "luminance": 0.17846
}

Semantic roles & 50–950 ramp

primary
#4070DC
secondary
#DCC89B
accent
#B63CEC
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4070DC

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

Preview Lab → · Contrast checker → · Palette generator →

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