#4070D3#4070D3

#4070D3 is a mid, vivid blue. Relative luminance 0.174; OKLCH L 56.4% C 0.161 H 262.9°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#4070D3
RGBrgb(64, 112, 211)
HSLhsl(220, 63%, 54%)
HSVhsv(220, 70%, 83%)
CMYKcmyk(69.7%, 46.9%, 0%, 17.3%)
CIE-LABlab(48.73, 16.68, -55.86)
CIE-LCHlch(48.73, 58.30, 286.63°)
OKLaboklab(56.37% -0.0201 -0.1601)
OKLCHoklch(56.37% 0.161 262.9)
XYZxyz(19.6622, 17.3794, 63.9337)
Luminance0.1738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070D3 #D3A340
analogous
#40BAD3 #4070D3 #5A40D3
triadic
#4070D3 #D34070 #70D340
tetradic
#4070D3 #D340BA #D3A340 #40D35A
square
#4070D3 #D340BA #D3A340 #40D35A
split-complementary
#4070D3 #D35A40 #BAD340
monochromatic
#1D3C7C #2854AE #4070D3 #7295DE #A3BAEA

Accessibility & contrast

On white

4.69
#4070D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#4070D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4070D3
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070D3#FFFFFF#000000##FFFFFF
##4070D31.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C7BD7
Deuteranopia (green-blind)
#196DD1
Tritanopia (blue-blind)
#008797
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4070d3;
/* rgb */ color: rgb(64, 112, 211);
/* oklch */ color: oklch(56.4% 0.161 262.9);
Tailwind
colors: {
  custom: {
    50: '#8698e1',
    500: '#4070d3',
    950: '#000000',
  },
}
SCSS
$custom: #4070d3;
$custom-light: #8698e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4070d3",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 211
  },
  "hsl": {
    "h": 220.408,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56367,
    "c": 0.16136,
    "h": 262.9
  },
  "luminance": 0.17381
}

Semantic roles & 50–950 ramp

primary
#4070D3
secondary
#D7C298
accent
#B042E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4070D3

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

Preview Lab → · Contrast checker → · Palette generator →

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