#4077D7#4077D7

#4077D7 is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.1% C 0.159 H 260.7°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#4077D7
RGBrgb(64, 119, 215)
HSLhsl(218, 65%, 55%)
HSVhsv(218, 70%, 84%)
CMYKcmyk(70.2%, 44.7%, 0%, 15.7%)
CIE-LABlab(50.91, 13.75, -54.65)
CIE-LCHlch(50.91, 56.35, 284.12°)
OKLaboklab(58.11% -0.0257 -0.1564)
OKLCHoklch(58.11% 0.159 260.7)
XYZxyz(20.9725, 19.1877, 66.8751)
Luminance0.1919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4077D7 #D7A040
analogous
#40C2D7 #4077D7 #5540D7
triadic
#4077D7 #D74077 #77D740
tetradic
#4077D7 #D740C2 #D7A040 #40D755
square
#4077D7 #D740C2 #D7A040 #40D755
split-complementary
#4077D7 #D75540 #C2D740
monochromatic
#1B4081 #265AB4 #4077D7 #739BE2 #A5BFEC

Accessibility & contrast

On white

4.34
#4077D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#4077D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4077D7
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4077D7#FFFFFF#000000##000000
##4077D71.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4781DB
Deuteranopia (green-blind)
#2A73D5
Tritanopia (blue-blind)
#008D9C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4077d7;
/* rgb */ color: rgb(64, 119, 215);
/* oklch */ color: oklch(58.1% 0.159 260.7);
Tailwind
colors: {
  custom: {
    50: '#869de4',
    500: '#4077d7',
    950: '#000000',
  },
}
SCSS
$custom: #4077d7;
$custom-light: #869de4;
$custom-dark: #000000;
JSON
{
  "hex": "#4077d7",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 215
  },
  "hsl": {
    "h": 218.146,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.58114,
    "c": 0.15852,
    "h": 260.7
  },
  "luminance": 0.1919
}

Semantic roles & 50–950 ramp

primary
#4077D7
secondary
#D9C29A
accent
#AB3FE8
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0D0E15
muted
#7D7E84

Preview Lab

Preview with #4077D7

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

Preview Lab → · Contrast checker → · Palette generator →

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