#4081E2#4081E2

#4081E2 is a mid, vivid blue. Relative luminance 0.223; OKLCH L 61.0% C 0.162 H 258.4°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#4081E2
RGBrgb(64, 129, 226)
HSLhsl(216, 74%, 57%)
HSVhsv(216, 72%, 89%)
CMYKcmyk(71.7%, 42.9%, 0%, 11.4%)
CIE-LABlab(54.32, 11.54, -55.38)
CIE-LCHlch(54.32, 56.57, 281.77°)
OKLaboklab(60.96% -0.0325 -0.1584)
OKLCHoklch(60.96% 0.162 258.4)
XYZxyz(23.6871, 22.2789, 74.9887)
Luminance0.2228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4081E2 #E2A140
analogous
#40D2E2 #4081E2 #5040E2
triadic
#4081E2 #E24081 #81E240
tetradic
#4081E2 #E240D2 #E2A140 #40E250
square
#4081E2 #E240D2 #E2A140 #40E250
split-complementary
#4081E2 #E25040 #D2E240
monochromatic
#164892 #1E62C7 #4081E2 #75A4EA #AAC7F2

Accessibility & contrast

On white

3.85
#4081E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#4081E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4081E2
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4081E2#FFFFFF#000000##000000
##4081E21.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#518AE6
Deuteranopia (green-blind)
#347BE0
Tritanopia (blue-blind)
#0098A6
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #4081e2;
/* rgb */ color: rgb(64, 129, 226);
/* oklch */ color: oklch(61.0% 0.162 258.4);
Tailwind
colors: {
  custom: {
    50: '#88a5ec',
    500: '#4081e2',
    950: '#000000',
  },
}
SCSS
$custom: #4081e2;
$custom-light: #88a5ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4081e2",
  "rgb": {
    "r": 64,
    "g": 129,
    "b": 226
  },
  "hsl": {
    "h": 215.926,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.6096,
    "c": 0.16171,
    "h": 258.4
  },
  "luminance": 0.22281
}

Semantic roles & 50–950 ramp

primary
#4081E2
secondary
#E0C59E
accent
#A638F0
background
#F9FAFE
surface
#F1F4FD
border
#CBCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #4081E2

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

Preview Lab → · Contrast checker → · Palette generator →

#4081E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva