#4071D7#4071D7

#4071D7 is a mid, vivid blue. Relative luminance 0.178; OKLCH L 56.8% C 0.166 H 262.9°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#4071D7
RGBrgb(64, 113, 215)
HSLhsl(221, 65%, 55%)
HSVhsv(221, 70%, 84%)
CMYKcmyk(70.2%, 47.4%, 0%, 15.7%)
CIE-LABlab(49.26, 17.50, -57.30)
CIE-LCHlch(49.26, 59.91, 286.98°)
OKLaboklab(56.85% -0.0204 -0.1643)
OKLCHoklch(56.85% 0.166 262.9)
XYZxyz(20.2809, 17.8044, 66.6446)
Luminance0.1781 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4071D7 #D7A640
analogous
#40BCD7 #4071D7 #5B40D7
triadic
#4071D7 #D74071 #71D740
tetradic
#4071D7 #D740BC #D7A640 #40D75B
square
#4071D7 #D740BC #D7A640 #40D75B
split-complementary
#4071D7 #D75B40 #BCD740
monochromatic
#1B3C81 #2654B4 #4071D7 #7397E2 #A5BCEC

Accessibility & contrast

On white

4.60
#4071D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#4071D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4071D7
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4071D7#FFFFFF#000000##FFFFFF
##4071D71.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A7CDB
Deuteranopia (green-blind)
#126FD5
Tritanopia (blue-blind)
#00899A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4071d7;
/* rgb */ color: rgb(64, 113, 215);
/* oklch */ color: oklch(56.8% 0.166 262.9);
Tailwind
colors: {
  custom: {
    50: '#8699e4',
    500: '#4071d7',
    950: '#000000',
  },
}
SCSS
$custom: #4071d7;
$custom-light: #8699e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4071d7",
  "rgb": {
    "r": 64,
    "g": 113,
    "b": 215
  },
  "hsl": {
    "h": 220.53,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56848,
    "c": 0.16557,
    "h": 262.9
  },
  "luminance": 0.17807
}

Semantic roles & 50–950 ramp

primary
#4071D7
secondary
#D9C59A
accent
#B23FE8
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0D0D16
muted
#7D7E84

Preview Lab

Preview with #4071D7

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

Preview Lab → · Contrast checker → · Palette generator →

#4071D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva