#4072BA#4072BA

#4072BA is a mid, vivid blue. Relative luminance 0.167; OKLCH L 55.2% C 0.125 H 257.6°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#4072BA
RGBrgb(64, 114, 186)
HSLhsl(215, 49%, 49%)
HSVhsv(215, 66%, 73%)
CMYKcmyk(65.6%, 38.7%, 0%, 27.1%)
CIE-LABlab(47.84, 6.50, -42.95)
CIE-LCHlch(47.84, 43.44, 278.60°)
OKLaboklab(55.2% -0.0268 -0.1222)
OKLCHoklch(55.2% 0.125 257.6)
XYZxyz(16.9914, 16.6681, 48.7667)
Luminance0.1667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4072BA #BA8840
analogous
#40AFBA #4072BA #4B40BA
triadic
#4072BA #BA4072 #72BA40
tetradic
#4072BA #BA40AF #BA8840 #40BA4B
square
#4072BA #BA40AF #BA8840 #40BA4B
split-complementary
#4072BA #BA4B40 #AFBA40
monochromatic
#213A5F #30568C #4072BA #6B93CC #99B4DC

Accessibility & contrast

On white

4.85
#4072BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#4072BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4072BA
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4072BA#FFFFFF#000000##FFFFFF
##4072BA1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5278BD
Deuteranopia (green-blind)
#406CB9
Tritanopia (blue-blind)
#00828D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4072ba;
/* rgb */ color: rgb(64, 114, 186);
/* oklch */ color: oklch(55.2% 0.125 257.6);
Tailwind
colors: {
  custom: {
    50: '#819acf',
    500: '#4072ba',
    950: '#000000',
  },
}
SCSS
$custom: #4072ba;
$custom-light: #819acf;
$custom-dark: #000000;
JSON
{
  "hex": "#4072ba",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 186
  },
  "hsl": {
    "h": 215.41,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.55204,
    "c": 0.12506,
    "h": 257.6
  },
  "luminance": 0.1667
}

Semantic roles & 50–950 ramp

primary
#4072BA
secondary
#C8B08E
accent
#A04FD8
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0B0E14
muted
#7C7E82

Preview Lab

Preview with #4072BA

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

Preview Lab → · Contrast checker → · Palette generator →

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