#4072DC#4072DC

#4072DC is a mid, vivid blue. Relative luminance 0.183; OKLCH L 57.4% C 0.171 H 263.1°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#4072DC
RGBrgb(64, 114, 220)
HSLhsl(221, 69%, 56%)
HSVhsv(221, 71%, 86%)
CMYKcmyk(70.9%, 48.2%, 0%, 13.7%)
CIE-LABlab(49.85, 18.67, -59.18)
CIE-LCHlch(49.85, 62.06, 287.51°)
OKLaboklab(57.4% -0.0205 -0.1698)
OKLCHoklch(57.4% 0.171 263.1)
XYZxyz(21.0453, 18.2897, 70.1174)
Luminance0.1829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4072DC #DCAA40
analogous
#40C0DC #4072DC #5C40DC
triadic
#4072DC #DC4072 #72DC40
tetradic
#4072DC #DC40C0 #DCAA40 #40DC5C
square
#4072DC #DC40C0 #DCAA40 #40DC5C
split-complementary
#4072DC #DC5C40 #C0DC40
monochromatic
#193D89 #2354BC #4072DC #7498E5 #A7BEEF

Accessibility & contrast

On white

4.51
#4072DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#4072DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4072DC
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4072DC#FFFFFF#000000##000000
##4072DC1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#377EE0
Deuteranopia (green-blind)
#0270DA
Tritanopia (blue-blind)
#008B9C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4072dc;
/* rgb */ color: rgb(64, 114, 220);
/* oklch */ color: oklch(57.4% 0.171 263.1);
Tailwind
colors: {
  custom: {
    50: '#8799e7',
    500: '#4072dc',
    950: '#000000',
  },
}
SCSS
$custom: #4072dc;
$custom-light: #8799e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4072dc",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 220
  },
  "hsl": {
    "h": 220.769,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57399,
    "c": 0.17108,
    "h": 263.1
  },
  "luminance": 0.18292
}

Semantic roles & 50–950 ramp

primary
#4072DC
secondary
#DCC89B
accent
#B33CEC
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4072DC

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

Preview Lab → · Contrast checker → · Palette generator →

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