#4072D4#4072D4

#4072D4 is a mid, vivid blue. Relative luminance 0.179; OKLCH L 56.9% C 0.160 H 262.2°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#4072D4
RGBrgb(64, 114, 212)
HSLhsl(220, 63%, 54%)
HSVhsv(220, 70%, 83%)
CMYKcmyk(69.8%, 46.2%, 0%, 16.9%)
CIE-LABlab(49.35, 15.79, -55.45)
CIE-LCHlch(49.35, 57.66, 285.89°)
OKLaboklab(56.86% -0.0217 -0.1589)
OKLCHoklch(56.86% 0.16 262.2)
XYZxyz(20.0111, 17.8760, 64.6704)
Luminance0.1788 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4072D4 #D4A240
analogous
#40BCD4 #4072D4 #5840D4
triadic
#4072D4 #D44072 #72D440
tetradic
#4072D4 #D440BC #D4A240 #40D458
square
#4072D4 #D440BC #D4A240 #40D458
split-complementary
#4072D4 #D45840 #BCD440
monochromatic
#1C3D7D #2755AF #4072D4 #7297DF #A4BCEA

Accessibility & contrast

On white

4.59
#4072D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#4072D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4072D4
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4072D4#FFFFFF#000000##FFFFFF
##4072D41.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F7DD8
Deuteranopia (green-blind)
#1F6FD2
Tritanopia (blue-blind)
#008999
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4072d4;
/* rgb */ color: rgb(64, 114, 212);
/* oklch */ color: oklch(56.9% 0.160 262.2);
Tailwind
colors: {
  custom: {
    50: '#869ae2',
    500: '#4072d4',
    950: '#000000',
  },
}
SCSS
$custom: #4072d4;
$custom-light: #869ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#4072d4",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 212
  },
  "hsl": {
    "h": 219.73,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56855,
    "c": 0.16035,
    "h": 262.2
  },
  "luminance": 0.17878
}

Semantic roles & 50–950 ramp

primary
#4072D4
secondary
#D7C298
accent
#AF42E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4072D4

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

Preview Lab → · Contrast checker → · Palette generator →

#4072D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva