#4072D2#4072D2

#4072D2 is a mid, vivid blue. Relative luminance 0.178; OKLCH L 56.7% C 0.158 H 262.0°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#4072D2
RGBrgb(64, 114, 210)
HSLhsl(219, 62%, 54%)
HSVhsv(219, 70%, 82%)
CMYKcmyk(69.5%, 45.7%, 0%, 17.6%)
CIE-LABlab(49.22, 15.07, -54.51)
CIE-LCHlch(49.22, 56.56, 285.45°)
OKLaboklab(56.72% -0.022 -0.1561)
OKLCHoklch(56.72% 0.158 262)
XYZxyz(19.7604, 17.7757, 63.3499)
Luminance0.1778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4072D2 #D2A040
analogous
#40BBD2 #4072D2 #5740D2
triadic
#4072D2 #D24072 #72D240
tetradic
#4072D2 #D240BB #D2A040 #40D257
square
#4072D2 #D240BB #D2A040 #40D257
split-complementary
#4072D2 #D25740 #BBD240
monochromatic
#1D3D7B #2956AC #4072D2 #7297DE #A3BBE9

Accessibility & contrast

On white

4.61
#4072D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#4072D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4072D2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4072D2#FFFFFF#000000##FFFFFF
##4072D21.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)
#417CD6
Deuteranopia (green-blind)
#236FD0
Tritanopia (blue-blind)
#008898
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4072d2;
/* rgb */ color: rgb(64, 114, 210);
/* oklch */ color: oklch(56.7% 0.158 262.0);
Tailwind
colors: {
  custom: {
    50: '#859ae0',
    500: '#4072d2',
    950: '#000000',
  },
}
SCSS
$custom: #4072d2;
$custom-light: #859ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#4072d2",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 210
  },
  "hsl": {
    "h": 219.452,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56722,
    "c": 0.15765,
    "h": 262
  },
  "luminance": 0.17778
}

Semantic roles & 50–950 ramp

primary
#4072D2
secondary
#D6C198
accent
#AD43E5
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4072D2

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

Preview Lab → · Contrast checker → · Palette generator →

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