#4077C8#4077C8

#4077C8 is a mid, vivid blue. Relative luminance 0.185; OKLCH L 57.2% C 0.138 H 258.1°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#4077C8
RGBrgb(64, 119, 200)
HSLhsl(216, 55%, 52%)
HSVhsv(216, 68%, 78%)
CMYKcmyk(68%, 40.5%, 0%, 21.6%)
CIE-LABlab(50.04, 8.38, -47.50)
CIE-LCHlch(50.04, 48.24, 280.00°)
OKLaboklab(57.16% -0.0286 -0.1354)
OKLCHoklch(57.16% 0.138 258.1)
XYZxyz(19.1327, 18.4518, 57.1856)
Luminance0.1845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4077C8 #C89140
analogous
#40BBC8 #4077C8 #4D40C8
triadic
#4077C8 #C84077 #77C840
tetradic
#4077C8 #C840BB #C89140 #40C84D
square
#4077C8 #C840BB #C89140 #40C84D
split-complementary
#4077C8 #C84D40 #BBC840
monochromatic
#203F6E #2D5B9D #4077C8 #7099D6 #9FBBE3

Accessibility & contrast

On white

4.48
#4077C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#4077C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4077C8
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4077C8#FFFFFF#000000##000000
##4077C81.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#527ECB
Deuteranopia (green-blind)
#3D71C6
Tritanopia (blue-blind)
#008A96
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4077c8;
/* rgb */ color: rgb(64, 119, 200);
/* oklch */ color: oklch(57.2% 0.138 258.1);
Tailwind
colors: {
  custom: {
    50: '#839dd9',
    500: '#4077c8',
    950: '#000000',
  },
}
SCSS
$custom: #4077c8;
$custom-light: #839dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4077c8",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 200
  },
  "hsl": {
    "h": 215.735,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.57164,
    "c": 0.13842,
    "h": 258.1
  },
  "luminance": 0.18454
}

Semantic roles & 50–950 ramp

primary
#4077C8
secondary
#D0B894
accent
#A249DF
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4077C8

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

Preview Lab → · Contrast checker → · Palette generator →

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