#4072DF#4072DF

#4072DF is a mid, vivid blue. Relative luminance 0.185; OKLCH L 57.6% C 0.175 H 263.4°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#4072DF
RGBrgb(64, 114, 223)
HSLhsl(221, 71%, 56%)
HSVhsv(221, 71%, 87%)
CMYKcmyk(71.3%, 48.9%, 0%, 12.5%)
CIE-LABlab(50.04, 19.75, -60.57)
CIE-LCHlch(50.04, 63.71, 288.06°)
OKLaboklab(57.61% -0.0201 -0.1739)
OKLCHoklch(57.61% 0.175 263.4)
XYZxyz(21.4462, 18.4501, 72.2287)
Luminance0.1845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4072DF #DFAD40
analogous
#40C2DF #4072DF #5E40DF
triadic
#4072DF #DF4072 #72DF40
tetradic
#4072DF #DF40C2 #DFAD40 #40DF5E
square
#4072DF #DF40C2 #DFAD40 #40DF5E
split-complementary
#4072DF #DF5E40 #C2DF40
monochromatic
#183D8D #2053C1 #4072DF #7499E8 #A9BFF1

Accessibility & contrast

On white

4.48
#4072DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#4072DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4072DF
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4072DF#FFFFFF#000000##000000
##4072DF1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#347FE3
Deuteranopia (green-blind)
#0070DD
Tritanopia (blue-blind)
#008C9E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4072df;
/* rgb */ color: rgb(64, 114, 223);
/* oklch */ color: oklch(57.6% 0.175 263.4);
Tailwind
colors: {
  custom: {
    50: '#8899ea',
    500: '#4072df',
    950: '#000000',
  },
}
SCSS
$custom: #4072df;
$custom-light: #8899ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4072df",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 223
  },
  "hsl": {
    "h": 221.132,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57607,
    "c": 0.17508,
    "h": 263.4
  },
  "luminance": 0.18452
}

Semantic roles & 50–950 ramp

primary
#4072DF
secondary
#DECA9D
accent
#B53AEE
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4072DF

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

Preview Lab → · Contrast checker → · Palette generator →

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