#4077C4#4077C4

#4077C4 is a mid, vivid blue. Relative luminance 0.183; OKLCH L 56.9% C 0.133 H 257.2°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#4077C4
RGBrgb(64, 119, 196)
HSLhsl(215, 53%, 51%)
HSVhsv(215, 67%, 77%)
CMYKcmyk(67.3%, 39.3%, 0%, 23.1%)
CIE-LABlab(49.82, 6.96, -45.56)
CIE-LCHlch(49.82, 46.09, 278.68°)
OKLaboklab(56.92% -0.0295 -0.1297)
OKLCHoklch(56.92% 0.133 257.2)
XYZxyz(18.6714, 18.2673, 54.7558)
Luminance0.1827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4077C4 #C48D40
analogous
#40B9C4 #4077C4 #4B40C4
triadic
#4077C4 #C44077 #77C440
tetradic
#4077C4 #C440B9 #C48D40 #40C44B
square
#4077C4 #C440B9 #C48D40 #40C44B
split-complementary
#4077C4 #C44B40 #B9C440
monochromatic
#203F69 #2F5B98 #4077C4 #6F98D2 #9EBAE1

Accessibility & contrast

On white

4.51
#4077C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#4077C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4077C4
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4077C4#FFFFFF#000000##000000
##4077C41.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#547DC7
Deuteranopia (green-blind)
#4071C2
Tritanopia (blue-blind)
#008994
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #4077c4;
/* rgb */ color: rgb(64, 119, 196);
/* oklch */ color: oklch(56.9% 0.133 257.2);
Tailwind
colors: {
  custom: {
    50: '#839dd6',
    500: '#4077c4',
    950: '#000000',
  },
}
SCSS
$custom: #4077c4;
$custom-light: #839dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#4077c4",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 196
  },
  "hsl": {
    "h": 215,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.56921,
    "c": 0.13306,
    "h": 257.2
  },
  "luminance": 0.18269
}

Semantic roles & 50–950 ramp

primary
#4077C4
secondary
#CDB593
accent
#A04CDC
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4077C4

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

Preview Lab → · Contrast checker → · Palette generator →

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