#4076DF#4076DF

#4076DF is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.4% C 0.170 H 262.1°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#4076DF
RGBrgb(64, 118, 223)
HSLhsl(220, 71%, 56%)
HSVhsv(220, 71%, 87%)
CMYKcmyk(71.3%, 47.1%, 0%, 12.5%)
CIE-LABlab(51.12, 17.25, -58.83)
CIE-LCHlch(51.12, 61.30, 286.35°)
OKLaboklab(58.44% -0.0235 -0.1687)
OKLCHoklch(58.44% 0.17 262.1)
XYZxyz(21.9073, 19.3722, 72.3824)
Luminance0.1938 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4076DF #DFA940
analogous
#40C5DF #4076DF #5A40DF
triadic
#4076DF #DF4076 #76DF40
tetradic
#4076DF #DF40C5 #DFA940 #40DF5A
square
#4076DF #DF40C5 #DFA940 #40DF5A
split-complementary
#4076DF #DF5A40 #C5DF40
monochromatic
#183F8D #2057C1 #4076DF #749CE8 #A9C1F1

Accessibility & contrast

On white

4.31
#4076DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#4076DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4076DF
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4076DF#FFFFFF#000000##000000
##4076DF1.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D82E3
Deuteranopia (green-blind)
#1373DD
Tritanopia (blue-blind)
#008FA0
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #4076df;
/* rgb */ color: rgb(64, 118, 223);
/* oklch */ color: oklch(58.4% 0.170 262.1);
Tailwind
colors: {
  custom: {
    50: '#889cea',
    500: '#4076df',
    950: '#000000',
  },
}
SCSS
$custom: #4076df;
$custom-light: #889cea;
$custom-dark: #000000;
JSON
{
  "hex": "#4076df",
  "rgb": {
    "r": 64,
    "g": 118,
    "b": 223
  },
  "hsl": {
    "h": 219.623,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58436,
    "c": 0.17036,
    "h": 262.1
  },
  "luminance": 0.19375
}

Semantic roles & 50–950 ramp

primary
#4076DF
secondary
#DEC89D
accent
#B13AEE
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #4076DF

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

Preview Lab → · Contrast checker → · Palette generator →

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