#4076C7#4076C7

#4076C7 is a mid, vivid blue. Relative luminance 0.182; OKLCH L 56.9% C 0.138 H 258.4°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#4076C7
RGBrgb(64, 118, 199)
HSLhsl(216, 55%, 52%)
HSVhsv(216, 68%, 78%)
CMYKcmyk(67.8%, 40.7%, 0%, 22%)
CIE-LABlab(49.70, 8.64, -47.47)
CIE-LCHlch(49.70, 48.25, 280.32°)
OKLaboklab(56.88% -0.0278 -0.1353)
OKLCHoklch(56.88% 0.138 258.4)
XYZxyz(18.8979, 18.1685, 56.5327)
Luminance0.1817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4076C7 #C79140
analogous
#40BAC7 #4076C7 #4E40C7
triadic
#4076C7 #C74076 #76C740
tetradic
#4076C7 #C740BA #C79140 #40C74E
square
#4076C7 #C740BA #C79140 #40C74E
split-complementary
#4076C7 #C74E40 #BAC740
monochromatic
#203F6D #2E5A9C #4076C7 #6F98D5 #9FBAE3

Accessibility & contrast

On white

4.53
#4076C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#4076C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4076C7
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4076C7#FFFFFF#000000##000000
##4076C71.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#517DCA
Deuteranopia (green-blind)
#3C70C5
Tritanopia (blue-blind)
#008995
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #4076c7;
/* rgb */ color: rgb(64, 118, 199);
/* oklch */ color: oklch(56.9% 0.138 258.4);
Tailwind
colors: {
  custom: {
    50: '#839dd8',
    500: '#4076c7',
    950: '#000000',
  },
}
SCSS
$custom: #4076c7;
$custom-light: #839dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#4076c7",
  "rgb": {
    "r": 64,
    "g": 118,
    "b": 199
  },
  "hsl": {
    "h": 216,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.56882,
    "c": 0.13818,
    "h": 258.4
  },
  "luminance": 0.1817
}

Semantic roles & 50–950 ramp

primary
#4076C7
secondary
#CFB794
accent
#A34ADE
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4076C7

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

Preview Lab → · Contrast checker → · Palette generator →

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