#4076CB#4076CB

#4076CB is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.1% C 0.144 H 259.2°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#4076CB
RGBrgb(64, 118, 203)
HSLhsl(217, 57%, 52%)
HSVhsv(217, 68%, 80%)
CMYKcmyk(68.5%, 41.9%, 0%, 20.4%)
CIE-LABlab(49.93, 10.07, -49.40)
CIE-LCHlch(49.93, 50.41, 281.52°)
OKLaboklab(57.13% -0.027 -0.141)
OKLCHoklch(57.13% 0.144 259.2)
XYZxyz(19.3684, 18.3567, 59.0108)
Luminance0.1836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4076CB #CB9540
analogous
#40BBCB #4076CB #5040CB
triadic
#4076CB #CB4076 #76CB40
tetradic
#4076CB #CB40BB #CB9540 #40CB50
square
#4076CB #CB40BB #CB9540 #40CB50
split-complementary
#4076CB #CB5040 #BBCB40
monochromatic
#1F3F72 #2C5AA2 #4076CB #7099D8 #A0BBE5

Accessibility & contrast

On white

4.50
#4076CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#4076CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4076CB
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4076CB#FFFFFF#000000##000000
##4076CB1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E7ECE
Deuteranopia (green-blind)
#3771C9
Tritanopia (blue-blind)
#008A96
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4076cb;
/* rgb */ color: rgb(64, 118, 203);
/* oklch */ color: oklch(57.1% 0.144 259.2);
Tailwind
colors: {
  custom: {
    50: '#849ddb',
    500: '#4076cb',
    950: '#000000',
  },
}
SCSS
$custom: #4076cb;
$custom-light: #849ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#4076cb",
  "rgb": {
    "r": 64,
    "g": 118,
    "b": 203
  },
  "hsl": {
    "h": 216.691,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.57131,
    "c": 0.14356,
    "h": 259.2
  },
  "luminance": 0.18359
}

Semantic roles & 50–950 ramp

primary
#4076CB
secondary
#D2BA95
accent
#A547E0
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4076CB

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

Preview Lab → · Contrast checker → · Palette generator →

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