#4077CC#4077CC

#4077CC is a mid, vivid blue. Relative luminance 0.186; OKLCH L 57.4% C 0.144 H 258.9°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#4077CC
RGBrgb(64, 119, 204)
HSLhsl(216, 58%, 53%)
HSVhsv(216, 69%, 80%)
CMYKcmyk(68.6%, 41.7%, 0%, 20%)
CIE-LABlab(50.26, 9.81, -49.43)
CIE-LCHlch(50.26, 50.39, 281.22°)
OKLaboklab(57.41% -0.0277 -0.1411)
OKLCHoklch(57.41% 0.144 258.9)
XYZxyz(19.6063, 18.6413, 59.6799)
Luminance0.1864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4077CC #CC9540
analogous
#40BDCC #4077CC #4F40CC
triadic
#4077CC #CC4077 #77CC40
tetradic
#4077CC #CC40BD #CC9540 #40CC4F
square
#4077CC #CC40BD #CC9540 #40CC4F
split-complementary
#4077CC #CC4F40 #BDCC40
monochromatic
#1F4073 #2C5BA3 #4077CC #7099D9 #A1BCE6

Accessibility & contrast

On white

4.44
#4077CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#4077CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4077CC
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4077CC#FFFFFF#000000##000000
##4077CC1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7FCF
Deuteranopia (green-blind)
#3872CA
Tritanopia (blue-blind)
#008B97
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4077cc;
/* rgb */ color: rgb(64, 119, 204);
/* oklch */ color: oklch(57.4% 0.144 258.9);
Tailwind
colors: {
  custom: {
    50: '#849ddc',
    500: '#4077cc',
    950: '#000000',
  },
}
SCSS
$custom: #4077cc;
$custom-light: #849ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#4077cc",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 204
  },
  "hsl": {
    "h": 216.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.57412,
    "c": 0.14378,
    "h": 258.9
  },
  "luminance": 0.18643
}

Semantic roles & 50–950 ramp

primary
#4077CC
secondary
#D2BA95
accent
#A447E1
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4077CC

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

Preview Lab → · Contrast checker → · Palette generator →

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