#4076C2#4076C2

#4076C2 is a mid, vivid blue. Relative luminance 0.179; OKLCH L 56.6% C 0.131 H 257.3°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#4076C2
RGBrgb(64, 118, 194)
HSLhsl(215, 52%, 51%)
HSVhsv(215, 67%, 76%)
CMYKcmyk(67%, 39.2%, 0%, 23.9%)
CIE-LABlab(49.42, 6.86, -45.05)
CIE-LCHlch(49.42, 45.57, 278.66°)
OKLaboklab(56.58% -0.0289 -0.1282)
OKLCHoklch(56.58% 0.131 257.3)
XYZxyz(18.3269, 17.9401, 53.5254)
Luminance0.1794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4076C2 #C28C40
analogous
#40B7C2 #4076C2 #4B40C2
triadic
#4076C2 #C24076 #76C240
tetradic
#4076C2 #C240B7 #C28C40 #40C24B
square
#4076C2 #C240B7 #C28C40 #40C24B
split-complementary
#4076C2 #C24B40 #B7C240
monochromatic
#213E67 #305A95 #4076C2 #6E97D1 #9DB9E0

Accessibility & contrast

On white

4.58
#4076C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#4076C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4076C2
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4076C2#FFFFFF#000000##000000
##4076C21.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#547CC5
Deuteranopia (green-blind)
#4070C0
Tritanopia (blue-blind)
#008892
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4076c2;
/* rgb */ color: rgb(64, 118, 194);
/* oklch */ color: oklch(56.6% 0.131 257.3);
Tailwind
colors: {
  custom: {
    50: '#829dd5',
    500: '#4076c2',
    950: '#000000',
  },
}
SCSS
$custom: #4076c2;
$custom-light: #829dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#4076c2",
  "rgb": {
    "r": 64,
    "g": 118,
    "b": 194
  },
  "hsl": {
    "h": 215.077,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.56578,
    "c": 0.13147,
    "h": 257.3
  },
  "luminance": 0.17942
}

Semantic roles & 50–950 ramp

primary
#4076C2
secondary
#CCB492
accent
#A04DDB
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4076C2

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

Preview Lab → · Contrast checker → · Palette generator →

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