#4077DF#4077DF

#4077DF is a mid, vivid blue. Relative luminance 0.196; OKLCH L 58.6% C 0.169 H 261.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#4077DF
RGBrgb(64, 119, 223)
HSLhsl(219, 71%, 56%)
HSVhsv(219, 71%, 87%)
CMYKcmyk(71.3%, 46.6%, 0%, 12.5%)
CIE-LABlab(51.39, 16.63, -58.39)
CIE-LCHlch(51.39, 60.71, 285.90°)
OKLaboklab(58.65% -0.0244 -0.1674)
OKLCHoklch(58.65% 0.169 261.7)
XYZxyz(22.0257, 19.6090, 72.4218)
Luminance0.1961 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4077DF #DFA840
analogous
#40C7DF #4077DF #5940DF
triadic
#4077DF #DF4077 #77DF40
tetradic
#4077DF #DF40C7 #DFA840 #40DF59
square
#4077DF #DF40C7 #DFA840 #40DF59
split-complementary
#4077DF #DF5940 #C7DF40
monochromatic
#18408D #2058C1 #4077DF #749CE8 #A9C2F1

Accessibility & contrast

On white

4.27
#4077DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#4077DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4077DF
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4077DF#FFFFFF#000000##000000
##4077DF1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4082E3
Deuteranopia (green-blind)
#1874DD
Tritanopia (blue-blind)
#008FA0
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #4077df;
/* rgb */ color: rgb(64, 119, 223);
/* oklch */ color: oklch(58.6% 0.169 261.7);
Tailwind
colors: {
  custom: {
    50: '#889dea',
    500: '#4077df',
    950: '#000000',
  },
}
SCSS
$custom: #4077df;
$custom-light: #889dea;
$custom-dark: #000000;
JSON
{
  "hex": "#4077df",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 223
  },
  "hsl": {
    "h": 219.245,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58645,
    "c": 0.16919,
    "h": 261.7
  },
  "luminance": 0.19611
}

Semantic roles & 50–950 ramp

primary
#4077DF
secondary
#DEC79D
accent
#B03AEE
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #4077DF

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

Preview Lab → · Contrast checker → · Palette generator →

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