#4070DB#4070DB

#4070DB is a mid, vivid blue. Relative luminance 0.178; OKLCH L 56.9% C 0.172 H 263.7°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#4070DB
RGBrgb(64, 112, 219)
HSLhsl(221, 68%, 55%)
HSVhsv(221, 71%, 86%)
CMYKcmyk(70.8%, 48.9%, 0%, 14.1%)
CIE-LABlab(49.24, 19.57, -59.59)
CIE-LCHlch(49.24, 62.72, 288.18°)
OKLaboklab(56.92% -0.019 -0.1711)
OKLCHoklch(56.92% 0.172 263.7)
XYZxyz(20.6902, 17.7906, 69.3476)
Luminance0.1779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070DB #DBAB40
analogous
#40BEDB #4070DB #5D40DB
triadic
#4070DB #DB4070 #70DB40
tetradic
#4070DB #DB40BE #DBAB40 #40DB5D
square
#4070DB #DB40BE #DBAB40 #40DB5D
split-complementary
#4070DB #DB5D40 #BEDB40
monochromatic
#193B87 #2352BB #4070DB #7397E5 #A7BDEE

Accessibility & contrast

On white

4.61
#4070DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#4070DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4070DB
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070DB#FFFFFF#000000##FFFFFF
##4070DB1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#337DDF
Deuteranopia (green-blind)
#006ED9
Tritanopia (blue-blind)
#00899B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4070db;
/* rgb */ color: rgb(64, 112, 219);
/* oklch */ color: oklch(56.9% 0.172 263.7);
Tailwind
colors: {
  custom: {
    50: '#8798e7',
    500: '#4070db',
    950: '#000000',
  },
}
SCSS
$custom: #4070db;
$custom-light: #8798e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4070db",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 219
  },
  "hsl": {
    "h": 221.419,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56917,
    "c": 0.17213,
    "h": 263.7
  },
  "luminance": 0.17793
}

Semantic roles & 50–950 ramp

primary
#4070DB
secondary
#DCC89B
accent
#B53DEB
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4070DB

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

Preview Lab → · Contrast checker → · Palette generator →

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