#4077DB#4077DB

#4077DB is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.4% C 0.164 H 261.2°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#4077DB
RGBrgb(64, 119, 219)
HSLhsl(219, 68%, 55%)
HSVhsv(219, 71%, 86%)
CMYKcmyk(70.8%, 45.7%, 0%, 14.1%)
CIE-LABlab(51.15, 15.19, -56.53)
CIE-LCHlch(51.15, 58.53, 285.04°)
OKLaboklab(58.38% -0.025 -0.1619)
OKLCHoklch(58.38% 0.164 261.2)
XYZxyz(21.4928, 19.3958, 69.6152)
Luminance0.1940 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4077DB #DBA440
analogous
#40C4DB #4077DB #5740DB
triadic
#4077DB #DB4077 #77DB40
tetradic
#4077DB #DB40C4 #DBA440 #40DB57
square
#4077DB #DB40C4 #DBA440 #40DB57
split-complementary
#4077DB #DB5740 #C4DB40
monochromatic
#194087 #2359BB #4077DB #739CE5 #A7C0EE

Accessibility & contrast

On white

4.30
#4077DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#4077DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4077DB
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4077DB#FFFFFF#000000##000000
##4077DB1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4381DF
Deuteranopia (green-blind)
#2273D9
Tritanopia (blue-blind)
#008E9E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #4077db;
/* rgb */ color: rgb(64, 119, 219);
/* oklch */ color: oklch(58.4% 0.164 261.2);
Tailwind
colors: {
  custom: {
    50: '#879de7',
    500: '#4077db',
    950: '#000000',
  },
}
SCSS
$custom: #4077db;
$custom-light: #879de7;
$custom-dark: #000000;
JSON
{
  "hex": "#4077db",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 219
  },
  "hsl": {
    "h": 218.71,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.58377,
    "c": 0.16386,
    "h": 261.2
  },
  "luminance": 0.19398
}

Semantic roles & 50–950 ramp

primary
#4077DB
secondary
#DCC59B
accent
#AD3DEB
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #4077DB

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

Preview Lab → · Contrast checker → · Palette generator →

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