#4072C5#4072C5

#4072C5 is a mid, vivid blue. Relative luminance 0.172; OKLCH L 55.9% C 0.140 H 260.0°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#4072C5
RGBrgb(64, 114, 197)
HSLhsl(217, 53%, 51%)
HSVhsv(217, 68%, 77%)
CMYKcmyk(67.5%, 42.1%, 0%, 22.7%)
CIE-LABlab(48.45, 10.41, -48.31)
CIE-LCHlch(48.45, 49.42, 282.16°)
OKLaboklab(55.88% -0.0244 -0.1379)
OKLCHoklch(55.88% 0.14 260)
XYZxyz(18.2061, 17.1540, 55.1641)
Luminance0.1716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4072C5 #C59340
analogous
#40B4C5 #4072C5 #5040C5
triadic
#4072C5 #C54072 #72C540
tetradic
#4072C5 #C540B4 #C59340 #40C550
square
#4072C5 #C540B4 #C59340 #40C550
split-complementary
#4072C5 #C55040 #B4C540
monochromatic
#203C6A #2F5799 #4072C5 #6F95D3 #9EB7E2

Accessibility & contrast

On white

4.74
#4072C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#4072C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4072C5
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4072C5#FFFFFF#000000##FFFFFF
##4072C51.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B7AC8
Deuteranopia (green-blind)
#366DC3
Tritanopia (blue-blind)
#008592
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4072c5;
/* rgb */ color: rgb(64, 114, 197);
/* oklch */ color: oklch(55.9% 0.140 260.0);
Tailwind
colors: {
  custom: {
    50: '#839ad7',
    500: '#4072c5',
    950: '#000000',
  },
}
SCSS
$custom: #4072c5;
$custom-light: #839ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#4072c5",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 197
  },
  "hsl": {
    "h": 217.444,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5588,
    "c": 0.14002,
    "h": 260
  },
  "luminance": 0.17156
}

Semantic roles & 50–950 ramp

primary
#4072C5
secondary
#CEB893
accent
#A64BDD
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4072C5

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

Preview Lab → · Contrast checker → · Palette generator →

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