#4077C6#4077C6

#4077C6 is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.0% C 0.136 H 257.7°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#4077C6
RGBrgb(64, 119, 198)
HSLhsl(215, 54%, 51%)
HSVhsv(215, 68%, 78%)
CMYKcmyk(67.7%, 39.9%, 0%, 22.4%)
CIE-LABlab(49.93, 7.67, -46.54)
CIE-LCHlch(49.93, 47.16, 279.36°)
OKLaboklab(57.04% -0.029 -0.1326)
OKLCHoklch(57.04% 0.136 257.7)
XYZxyz(18.9005, 18.3589, 55.9627)
Luminance0.1836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4077C6 #C68F40
analogous
#40BAC6 #4077C6 #4C40C6
triadic
#4077C6 #C64077 #77C640
tetradic
#4077C6 #C640BA #C68F40 #40C64C
square
#4077C6 #C640BA #C68F40 #40C64C
split-complementary
#4077C6 #C64C40 #BAC640
monochromatic
#203F6C #2E5B9B #4077C6 #6F99D4 #9EBAE2

Accessibility & contrast

On white

4.49
#4077C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#4077C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4077C6
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4077C6#FFFFFF#000000##000000
##4077C61.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#537EC9
Deuteranopia (green-blind)
#3E71C4
Tritanopia (blue-blind)
#008995
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4077c6;
/* rgb */ color: rgb(64, 119, 198);
/* oklch */ color: oklch(57.0% 0.136 257.7);
Tailwind
colors: {
  custom: {
    50: '#839dd8',
    500: '#4077c6',
    950: '#000000',
  },
}
SCSS
$custom: #4077c6;
$custom-light: #839dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#4077c6",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 198
  },
  "hsl": {
    "h": 215.373,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.57042,
    "c": 0.13573,
    "h": 257.7
  },
  "luminance": 0.18361
}

Semantic roles & 50–950 ramp

primary
#4077C6
secondary
#CEB693
accent
#A14ADD
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4077C6

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

Preview Lab → · Contrast checker → · Palette generator →

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