#4070BD#4070BD

#4070BD is a mid, vivid blue. Relative luminance 0.164; OKLCH L 54.9% C 0.131 H 259.4°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#4070BD
RGBrgb(64, 112, 189)
HSLhsl(217, 49%, 50%)
HSVhsv(217, 66%, 74%)
CMYKcmyk(66.1%, 40.7%, 0%, 25.9%)
CIE-LABlab(47.43, 8.80, -45.34)
CIE-LCHlch(47.43, 46.18, 280.99°)
OKLaboklab(54.94% -0.0241 -0.1292)
OKLCHoklch(54.94% 0.131 259.4)
XYZxyz(17.0906, 16.3508, 50.3896)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070BD #BD8D40
analogous
#40AFBD #4070BD #4F40BD
triadic
#4070BD #BD4070 #70BD40
tetradic
#4070BD #BD40AF #BD8D40 #40BD4F
square
#4070BD #BD40AF #BD8D40 #40BD4F
split-complementary
#4070BD #BD4F40 #AFBD40
monochromatic
#213A62 #31558F #4070BD #6D92CD #9AB4DD

Accessibility & contrast

On white

4.92
#4070BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#4070BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4070BD
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070BD#FFFFFF#000000##FFFFFF
##4070BD1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D77C0
Deuteranopia (green-blind)
#3A6BBB
Tritanopia (blue-blind)
#00828D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4070bd;
/* rgb */ color: rgb(64, 112, 189);
/* oklch */ color: oklch(54.9% 0.131 259.4);
Tailwind
colors: {
  custom: {
    50: '#8298d1',
    500: '#4070bd',
    950: '#000000',
  },
}
SCSS
$custom: #4070bd;
$custom-light: #8298d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4070bd",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 189
  },
  "hsl": {
    "h": 216.96,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54942,
    "c": 0.1314,
    "h": 259.4
  },
  "luminance": 0.16352
}

Semantic roles & 50–950 ramp

primary
#4070BD
secondary
#C9B390
accent
#A44FD9
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #4070BD

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

Preview Lab → · Contrast checker → · Palette generator →

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