#4072C8#4072C8

#4072C8 is a mid, vivid blue. Relative luminance 0.173; OKLCH L 56.1% C 0.144 H 260.5°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#4072C8
RGBrgb(64, 114, 200)
HSLhsl(218, 55%, 52%)
HSVhsv(218, 68%, 78%)
CMYKcmyk(68%, 43%, 0%, 21.6%)
CIE-LABlab(48.63, 11.48, -49.76)
CIE-LCHlch(48.63, 51.06, 282.99°)
OKLaboklab(56.07% -0.0238 -0.1421)
OKLCHoklch(56.07% 0.144 260.5)
XYZxyz(18.5533, 17.2929, 56.9925)
Luminance0.1729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4072C8 #C89640
analogous
#40B6C8 #4072C8 #5240C8
triadic
#4072C8 #C84072 #72C840
tetradic
#4072C8 #C840B6 #C89640 #40C852
square
#4072C8 #C840B6 #C89640 #40C852
split-complementary
#4072C8 #C85240 #B6C840
monochromatic
#203C6E #2D579D #4072C8 #7095D6 #9FB8E3

Accessibility & contrast

On white

4.71
#4072C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#4072C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4072C8
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4072C8#FFFFFF#000000##FFFFFF
##4072C81.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#497ACB
Deuteranopia (green-blind)
#326EC6
Tritanopia (blue-blind)
#008693
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4072c8;
/* rgb */ color: rgb(64, 114, 200);
/* oklch */ color: oklch(56.1% 0.144 260.5);
Tailwind
colors: {
  custom: {
    50: '#849ad9',
    500: '#4072c8',
    950: '#000000',
  },
}
SCSS
$custom: #4072c8;
$custom-light: #849ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#4072c8",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 200
  },
  "hsl": {
    "h": 217.941,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.5607,
    "c": 0.1441,
    "h": 260.5
  },
  "luminance": 0.17295
}

Semantic roles & 50–950 ramp

primary
#4072C8
secondary
#D0BA94
accent
#A849DF
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4072C8

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

Preview Lab → · Contrast checker → · Palette generator →

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