#4072C7#4072C7

#4072C7 is a mid, vivid blue. Relative luminance 0.172; OKLCH L 56.0% C 0.143 H 260.3°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#4072C7
RGBrgb(64, 114, 199)
HSLhsl(218, 55%, 52%)
HSVhsv(218, 68%, 78%)
CMYKcmyk(67.8%, 42.7%, 0%, 22%)
CIE-LABlab(48.57, 11.12, -49.28)
CIE-LCHlch(48.57, 50.52, 282.72°)
OKLaboklab(56.01% -0.024 -0.1407)
OKLCHoklch(56.01% 0.143 260.3)
XYZxyz(18.4368, 17.2463, 56.3790)
Luminance0.1725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4072C7 #C79540
analogous
#40B6C7 #4072C7 #5240C7
triadic
#4072C7 #C74072 #72C740
tetradic
#4072C7 #C740B6 #C79540 #40C752
square
#4072C7 #C740B6 #C79540 #40C752
split-complementary
#4072C7 #C75240 #B6C740
monochromatic
#203C6D #2E579C #4072C7 #6F95D5 #9FB8E3

Accessibility & contrast

On white

4.72
#4072C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#4072C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4072C7
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4072C7#FFFFFF#000000##FFFFFF
##4072C71.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A7ACA
Deuteranopia (green-blind)
#336EC5
Tritanopia (blue-blind)
#008693
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4072c7;
/* rgb */ color: rgb(64, 114, 199);
/* oklch */ color: oklch(56.0% 0.143 260.3);
Tailwind
colors: {
  custom: {
    50: '#839ad8',
    500: '#4072c7',
    950: '#000000',
  },
}
SCSS
$custom: #4072c7;
$custom-light: #839ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#4072c7",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 199
  },
  "hsl": {
    "h": 217.778,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.56007,
    "c": 0.14274,
    "h": 260.3
  },
  "luminance": 0.17248
}

Semantic roles & 50–950 ramp

primary
#4072C7
secondary
#CFB994
accent
#A74ADE
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4072C7

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

Preview Lab → · Contrast checker → · Palette generator →

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