#4077D4#4077D4

#4077D4 is a mid, vivid blue. Relative luminance 0.190; OKLCH L 57.9% C 0.155 H 260.2°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#4077D4
RGBrgb(64, 119, 212)
HSLhsl(218, 63%, 54%)
HSVhsv(218, 70%, 83%)
CMYKcmyk(69.8%, 43.9%, 0%, 16.9%)
CIE-LABlab(50.73, 12.67, -53.24)
CIE-LCHlch(50.73, 54.72, 283.39°)
OKLaboklab(57.92% -0.0262 -0.1523)
OKLCHoklch(57.92% 0.155 260.2)
XYZxyz(20.5906, 19.0350, 64.8635)
Luminance0.1904 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4077D4 #D49D40
analogous
#40C1D4 #4077D4 #5340D4
triadic
#4077D4 #D44077 #77D440
tetradic
#4077D4 #D440C1 #D49D40 #40D453
square
#4077D4 #D440C1 #D49D40 #40D453
split-complementary
#4077D4 #D45340 #C1D440
monochromatic
#1C407D #275AAF #4077D4 #729BDF #A4BEEA

Accessibility & contrast

On white

4.37
#4077D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#4077D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4077D4
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4077D4#FFFFFF#000000##000000
##4077D41.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4980D8
Deuteranopia (green-blind)
#2E72D2
Tritanopia (blue-blind)
#008D9B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4077d4;
/* rgb */ color: rgb(64, 119, 212);
/* oklch */ color: oklch(57.9% 0.155 260.2);
Tailwind
colors: {
  custom: {
    50: '#869de2',
    500: '#4077d4',
    950: '#000000',
  },
}
SCSS
$custom: #4077d4;
$custom-light: #869de2;
$custom-dark: #000000;
JSON
{
  "hex": "#4077d4",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 212
  },
  "hsl": {
    "h": 217.703,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5792,
    "c": 0.15451,
    "h": 260.2
  },
  "luminance": 0.19037
}

Semantic roles & 50–950 ramp

primary
#4077D4
secondary
#D7C098
accent
#A942E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4077D4

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

Preview Lab → · Contrast checker → · Palette generator →

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