#4076C5#4076C5

#4076C5 is a mid, vivid blue. Relative luminance 0.181; OKLCH L 56.8% C 0.135 H 258.0°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#4076C5
RGBrgb(64, 118, 197)
HSLhsl(216, 53%, 51%)
HSVhsv(216, 68%, 77%)
CMYKcmyk(67.5%, 40.1%, 0%, 22.7%)
CIE-LABlab(49.59, 7.93, -46.50)
CIE-LCHlch(49.59, 47.17, 279.67°)
OKLaboklab(56.76% -0.0283 -0.1325)
OKLCHoklch(56.76% 0.135 258)
XYZxyz(18.6672, 18.0762, 55.3178)
Luminance0.1808 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4076C5 #C58F40
analogous
#40B8C5 #4076C5 #4C40C5
triadic
#4076C5 #C54076 #76C540
tetradic
#4076C5 #C540B8 #C58F40 #40C54C
square
#4076C5 #C540B8 #C58F40 #40C54C
split-complementary
#4076C5 #C54C40 #B8C540
monochromatic
#203E6A #2F5A99 #4076C5 #6F98D3 #9EB9E2

Accessibility & contrast

On white

4.55
#4076C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#4076C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4076C5
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4076C5#FFFFFF#000000##000000
##4076C51.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#527DC8
Deuteranopia (green-blind)
#3E70C3
Tritanopia (blue-blind)
#008894
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #4076c5;
/* rgb */ color: rgb(64, 118, 197);
/* oklch */ color: oklch(56.8% 0.135 258.0);
Tailwind
colors: {
  custom: {
    50: '#839dd7',
    500: '#4076c5',
    950: '#000000',
  },
}
SCSS
$custom: #4076c5;
$custom-light: #839dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#4076c5",
  "rgb": {
    "r": 64,
    "g": 118,
    "b": 197
  },
  "hsl": {
    "h": 215.639,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5676,
    "c": 0.13549,
    "h": 258
  },
  "luminance": 0.18078
}

Semantic roles & 50–950 ramp

primary
#4076C5
secondary
#CEB693
accent
#A24BDD
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4076C5

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

Preview Lab → · Contrast checker → · Palette generator →

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