#4077D2#4077D2

#4077D2 is a mid, vivid blue. Relative luminance 0.189; OKLCH L 57.8% C 0.152 H 259.9°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#4077D2
RGBrgb(64, 119, 210)
HSLhsl(217, 62%, 54%)
HSVhsv(217, 70%, 82%)
CMYKcmyk(69.5%, 43.3%, 0%, 17.6%)
CIE-LABlab(50.61, 11.96, -52.29)
CIE-LCHlch(50.61, 53.64, 282.88°)
OKLaboklab(57.79% -0.0266 -0.1495)
OKLCHoklch(57.79% 0.152 259.9)
XYZxyz(20.3399, 18.9347, 63.5431)
Luminance0.1894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4077D2 #D29B40
analogous
#40C0D2 #4077D2 #5240D2
triadic
#4077D2 #D24077 #77D240
tetradic
#4077D2 #D240C0 #D29B40 #40D252
square
#4077D2 #D240C0 #D29B40 #40D252
split-complementary
#4077D2 #D25240 #C0D240
monochromatic
#1D407B #295AAC #4077D2 #729ADE #A3BEE9

Accessibility & contrast

On white

4.39
#4077D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#4077D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4077D2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4077D2#FFFFFF#000000##000000
##4077D21.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B80D6
Deuteranopia (green-blind)
#3172D0
Tritanopia (blue-blind)
#008C9A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4077d2;
/* rgb */ color: rgb(64, 119, 210);
/* oklch */ color: oklch(57.8% 0.152 259.9);
Tailwind
colors: {
  custom: {
    50: '#859de0',
    500: '#4077d2',
    950: '#000000',
  },
}
SCSS
$custom: #4077d2;
$custom-light: #859de0;
$custom-dark: #000000;
JSON
{
  "hex": "#4077d2",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 210
  },
  "hsl": {
    "h": 217.397,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.57791,
    "c": 0.15182,
    "h": 259.9
  },
  "luminance": 0.18937
}

Semantic roles & 50–950 ramp

primary
#4077D2
secondary
#D6BF98
accent
#A843E5
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4077D2

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

Preview Lab → · Contrast checker → · Palette generator →

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