#4077CB#4077CB

#4077CB is a mid, vivid blue. Relative luminance 0.186; OKLCH L 57.3% C 0.142 H 258.7°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#4077CB
RGBrgb(64, 119, 203)
HSLhsl(216, 57%, 52%)
HSVhsv(216, 68%, 80%)
CMYKcmyk(68.5%, 41.4%, 0%, 20.4%)
CIE-LABlab(50.21, 9.45, -48.95)
CIE-LCHlch(50.21, 49.85, 280.93°)
OKLaboklab(57.35% -0.028 -0.1397)
OKLCHoklch(57.35% 0.142 258.7)
XYZxyz(19.4868, 18.5934, 59.0502)
Luminance0.1860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4077CB #CB9440
analogous
#40BDCB #4077CB #4E40CB
triadic
#4077CB #CB4077 #77CB40
tetradic
#4077CB #CB40BD #CB9440 #40CB4E
square
#4077CB #CB40BD #CB9440 #40CB4E
split-complementary
#4077CB #CB4E40 #BDCB40
monochromatic
#1F4072 #2C5BA2 #4077CB #7099D8 #A0BCE5

Accessibility & contrast

On white

4.45
#4077CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#4077CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4077CB
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4077CB#FFFFFF#000000##000000
##4077CB1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#507ECE
Deuteranopia (green-blind)
#3972C9
Tritanopia (blue-blind)
#008A97
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4077cb;
/* rgb */ color: rgb(64, 119, 203);
/* oklch */ color: oklch(57.3% 0.142 258.7);
Tailwind
colors: {
  custom: {
    50: '#849ddb',
    500: '#4077cb',
    950: '#000000',
  },
}
SCSS
$custom: #4077cb;
$custom-light: #849ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#4077cb",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 203
  },
  "hsl": {
    "h": 216.259,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.57349,
    "c": 0.14244,
    "h": 258.7
  },
  "luminance": 0.18595
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4077CB

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

Preview Lab → · Contrast checker → · Palette generator →

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