#4079D2#4079D2

#4079D2 is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.2% C 0.150 H 259.0°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#4079D2
RGBrgb(64, 121, 210)
HSLhsl(217, 62%, 54%)
HSVhsv(217, 70%, 82%)
CMYKcmyk(69.5%, 42.4%, 0%, 17.6%)
CIE-LABlab(51.17, 10.72, -51.39)
CIE-LCHlch(51.17, 52.50, 281.78°)
OKLaboklab(58.22% -0.0284 -0.1468)
OKLCHoklch(58.22% 0.15 259)
XYZxyz(20.5804, 19.4157, 63.6233)
Luminance0.1942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4079D2 #D29940
analogous
#40C2D2 #4079D2 #5040D2
triadic
#4079D2 #D24079 #79D240
tetradic
#4079D2 #D240C2 #D29940 #40D250
square
#4079D2 #D240C2 #D29940 #40D250
split-complementary
#4079D2 #D25040 #C2D240
monochromatic
#1D427B #295CAC #4079D2 #729CDE #A3BEE9

Accessibility & contrast

On white

4.30
#4079D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#4079D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4079D2
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4079D2#FFFFFF#000000##000000
##4079D21.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E81D5
Deuteranopia (green-blind)
#3674D0
Tritanopia (blue-blind)
#008E9B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #4079d2;
/* rgb */ color: rgb(64, 121, 210);
/* oklch */ color: oklch(58.2% 0.150 259.0);
Tailwind
colors: {
  custom: {
    50: '#859fe0',
    500: '#4079d2',
    950: '#000000',
  },
}
SCSS
$custom: #4079d2;
$custom-light: #859fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#4079d2",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 210
  },
  "hsl": {
    "h": 216.575,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.58223,
    "c": 0.14955,
    "h": 259
  },
  "luminance": 0.19418
}

Semantic roles & 50–950 ramp

primary
#4079D2
secondary
#D6BE98
accent
#A643E5
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4079D2

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

Preview Lab → · Contrast checker → · Palette generator →

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