#4070BF#4070BF

#4070BF is a mid, vivid blue. Relative luminance 0.164; OKLCH L 55.1% C 0.134 H 259.8°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#4070BF
RGBrgb(64, 112, 191)
HSLhsl(217, 50%, 50%)
HSVhsv(217, 66%, 75%)
CMYKcmyk(66.5%, 41.4%, 0%, 25.1%)
CIE-LABlab(47.54, 9.51, -46.31)
CIE-LCHlch(47.54, 47.28, 281.61°)
OKLaboklab(55.07% -0.0236 -0.132)
OKLCHoklch(55.07% 0.134 259.8)
XYZxyz(17.3091, 16.4382, 51.5408)
Luminance0.1644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070BF #BF8F40
analogous
#40AFBF #4070BF #5040BF
triadic
#4070BF #BF4070 #70BF40
tetradic
#4070BF #BF40AF #BF8F40 #40BF50
square
#4070BF #BF40AF #BF8F40 #40BF50
split-complementary
#4070BF #BF5040 #AFBF40
monochromatic
#213A63 #315591 #4070BF #6E92CE #9CB5DE

Accessibility & contrast

On white

4.90
#4070BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#4070BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4070BF
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070BF#FFFFFF#000000##FFFFFF
##4070BF1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C77C2
Deuteranopia (green-blind)
#386BBD
Tritanopia (blue-blind)
#00828E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4070bf;
/* rgb */ color: rgb(64, 112, 191);
/* oklch */ color: oklch(55.1% 0.134 259.8);
Tailwind
colors: {
  custom: {
    50: '#8298d3',
    500: '#4070bf',
    950: '#000000',
  },
}
SCSS
$custom: #4070bf;
$custom-light: #8298d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4070bf",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 191
  },
  "hsl": {
    "h": 217.323,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.55066,
    "c": 0.13413,
    "h": 259.8
  },
  "luminance": 0.1644
}

Semantic roles & 50–950 ramp

primary
#4070BF
secondary
#CAB491
accent
#A54ED9
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #4070BF

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

Preview Lab → · Contrast checker → · Palette generator →

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