#4079D4#4079D4

#4079D4 is a mid, vivid blue. Relative luminance 0.195; OKLCH L 58.4% C 0.152 H 259.4°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#4079D4
RGBrgb(64, 121, 212)
HSLhsl(217, 63%, 54%)
HSVhsv(217, 70%, 83%)
CMYKcmyk(69.8%, 42.9%, 0%, 16.9%)
CIE-LABlab(51.29, 11.44, -52.34)
CIE-LCHlch(51.29, 53.58, 282.32°)
OKLaboklab(58.35% -0.028 -0.1496)
OKLCHoklch(58.35% 0.152 259.4)
XYZxyz(20.8311, 19.5160, 64.9437)
Luminance0.1952 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4079D4 #D49B40
analogous
#40C3D4 #4079D4 #5140D4
triadic
#4079D4 #D44079 #79D440
tetradic
#4079D4 #D440C3 #D49B40 #40D451
square
#4079D4 #D440C3 #D49B40 #40D451
split-complementary
#4079D4 #D45140 #C3D440
monochromatic
#1C427D #275CAF #4079D4 #729CDF #A4BFEA

Accessibility & contrast

On white

4.28
#4079D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#4079D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4079D4
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4079D4#FFFFFF#000000##000000
##4079D41.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D82D8
Deuteranopia (green-blind)
#3374D2
Tritanopia (blue-blind)
#008E9C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #4079d4;
/* rgb */ color: rgb(64, 121, 212);
/* oklch */ color: oklch(58.4% 0.152 259.4);
Tailwind
colors: {
  custom: {
    50: '#869fe2',
    500: '#4079d4',
    950: '#000000',
  },
}
SCSS
$custom: #4079d4;
$custom-light: #869fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#4079d4",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 212
  },
  "hsl": {
    "h": 216.892,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5835,
    "c": 0.15221,
    "h": 259.4
  },
  "luminance": 0.19518
}

Semantic roles & 50–950 ramp

primary
#4079D4
secondary
#D7BF98
accent
#A742E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4079D4

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

Preview Lab → · Contrast checker → · Palette generator →

#4079D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva