#4077D8#4077D8

#4077D8 is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.2% C 0.160 H 260.8°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#4077D8
RGBrgb(64, 119, 216)
HSLhsl(218, 66%, 55%)
HSVhsv(218, 70%, 85%)
CMYKcmyk(70.4%, 44.9%, 0%, 15.3%)
CIE-LABlab(50.97, 14.11, -55.12)
CIE-LCHlch(50.97, 56.90, 284.36°)
OKLaboklab(58.18% -0.0255 -0.1578)
OKLCHoklch(58.18% 0.16 260.8)
XYZxyz(21.1014, 19.2393, 67.5539)
Luminance0.1924 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4077D8 #D8A140
analogous
#40C3D8 #4077D8 #5540D8
triadic
#4077D8 #D84077 #77D840
tetradic
#4077D8 #D840C3 #D8A140 #40D855
square
#4077D8 #D840C3 #D8A140 #40D855
split-complementary
#4077D8 #D85540 #C3D840
monochromatic
#1B4083 #2559B6 #4077D8 #739BE2 #A6BFED

Accessibility & contrast

On white

4.33
#4077D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#4077D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4077D8
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4077D8#FFFFFF#000000##000000
##4077D81.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4681DC
Deuteranopia (green-blind)
#2873D6
Tritanopia (blue-blind)
#008E9D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4077d8;
/* rgb */ color: rgb(64, 119, 216);
/* oklch */ color: oklch(58.2% 0.160 260.8);
Tailwind
colors: {
  custom: {
    50: '#869de5',
    500: '#4077d8',
    950: '#000000',
  },
}
SCSS
$custom: #4077d8;
$custom-light: #869de5;
$custom-dark: #000000;
JSON
{
  "hex": "#4077d8",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 216
  },
  "hsl": {
    "h": 218.289,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.5818,
    "c": 0.15986,
    "h": 260.8
  },
  "luminance": 0.19242
}

Semantic roles & 50–950 ramp

primary
#4077D8
secondary
#DAC39A
accent
#AB3FE9
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0D0E16
muted
#7D7E84

Preview Lab

Preview with #4077D8

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

Preview Lab → · Contrast checker → · Palette generator →

#4077D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva