#4076D2#4076D2

#4076D2 is a mid, vivid blue. Relative luminance 0.187; OKLCH L 57.6% C 0.153 H 260.3°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#4076D2
RGBrgb(64, 118, 210)
HSLhsl(218, 62%, 54%)
HSVhsv(218, 70%, 82%)
CMYKcmyk(69.5%, 43.8%, 0%, 17.6%)
CIE-LABlab(50.33, 12.58, -52.73)
CIE-LCHlch(50.33, 54.21, 283.41°)
OKLaboklab(57.58% -0.0257 -0.1508)
OKLCHoklch(57.58% 0.153 260.3)
XYZxyz(20.2215, 18.6979, 63.5036)
Luminance0.1870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4076D2 #D29C40
analogous
#40BFD2 #4076D2 #5340D2
triadic
#4076D2 #D24076 #76D240
tetradic
#4076D2 #D240BF #D29C40 #40D253
square
#4076D2 #D240BF #D29C40 #40D253
split-complementary
#4076D2 #D25340 #BFD240
monochromatic
#1D407B #2959AC #4076D2 #729ADE #A3BDE9

Accessibility & contrast

On white

4.43
#4076D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#4076D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4076D2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4076D2#FFFFFF#000000##000000
##4076D21.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#497FD6
Deuteranopia (green-blind)
#2E72D0
Tritanopia (blue-blind)
#008B9A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4076d2;
/* rgb */ color: rgb(64, 118, 210);
/* oklch */ color: oklch(57.6% 0.153 260.3);
Tailwind
colors: {
  custom: {
    50: '#859ce0',
    500: '#4076d2',
    950: '#000000',
  },
}
SCSS
$custom: #4076d2;
$custom-light: #859ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#4076d2",
  "rgb": {
    "r": 64,
    "g": 118,
    "b": 210
  },
  "hsl": {
    "h": 217.808,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.57576,
    "c": 0.15298,
    "h": 260.3
  },
  "luminance": 0.187
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4076D2

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

Preview Lab → · Contrast checker → · Palette generator →

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