#4070D5#4070D5

#4070D5 is a mid, vivid blue. Relative luminance 0.175; OKLCH L 56.5% C 0.164 H 263.1°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#4070D5
RGBrgb(64, 112, 213)
HSLhsl(221, 64%, 54%)
HSVhsv(221, 70%, 84%)
CMYKcmyk(70%, 47.4%, 0%, 16.5%)
CIE-LABlab(48.86, 17.40, -56.80)
CIE-LCHlch(48.86, 59.41, 287.03°)
OKLaboklab(56.5% -0.0198 -0.1629)
OKLCHoklch(56.5% 0.164 263.1)
XYZxyz(19.9145, 17.4804, 65.2624)
Luminance0.1748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070D5 #D5A540
analogous
#40BBD5 #4070D5 #5B40D5
triadic
#4070D5 #D54070 #70D540
tetradic
#4070D5 #D540BB #D5A540 #40D55B
square
#4070D5 #D540BB #D5A540 #40D55B
split-complementary
#4070D5 #D55B40 #BBD540
monochromatic
#1C3C7F #2753B1 #4070D5 #7296E0 #A4BBEB

Accessibility & contrast

On white

4.67
#4070D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#4070D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4070D5
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070D5#FFFFFF#000000##FFFFFF
##4070D51.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A7BD9
Deuteranopia (green-blind)
#136ED3
Tritanopia (blue-blind)
#008898
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4070d5;
/* rgb */ color: rgb(64, 112, 213);
/* oklch */ color: oklch(56.5% 0.164 263.1);
Tailwind
colors: {
  custom: {
    50: '#8698e2',
    500: '#4070d5',
    950: '#000000',
  },
}
SCSS
$custom: #4070d5;
$custom-light: #8698e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4070d5",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 213
  },
  "hsl": {
    "h": 220.671,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56503,
    "c": 0.16407,
    "h": 263.1
  },
  "luminance": 0.17482
}

Semantic roles & 50–950 ramp

primary
#4070D5
secondary
#D8C499
accent
#B141E7
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4070D5

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

Preview Lab → · Contrast checker → · Palette generator →

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