#4082E2#4082E2

#4082E2 is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.2% C 0.161 H 258.0°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#4082E2
RGBrgb(64, 130, 226)
HSLhsl(216, 74%, 57%)
HSVhsv(216, 72%, 89%)
CMYKcmyk(71.7%, 42.5%, 0%, 11.4%)
CIE-LABlab(54.60, 10.93, -54.93)
CIE-LCHlch(54.60, 56.01, 281.25°)
OKLaboklab(61.17% -0.0334 -0.1571)
OKLCHoklch(61.17% 0.161 258)
XYZxyz(23.8195, 22.5436, 75.0328)
Luminance0.2255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4082E2 #E2A040
analogous
#40D3E2 #4082E2 #4F40E2
triadic
#4082E2 #E24082 #82E240
tetradic
#4082E2 #E240D3 #E2A040 #40E24F
square
#4082E2 #E240D3 #E2A040 #40E24F
split-complementary
#4082E2 #E24F40 #D3E240
monochromatic
#164892 #1E63C7 #4082E2 #75A5EA #AAC8F2

Accessibility & contrast

On white

3.81
#4082E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#4082E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4082E2
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4082E2#FFFFFF#000000##000000
##4082E21.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#538BE6
Deuteranopia (green-blind)
#377CE0
Tritanopia (blue-blind)
#0098A7
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #4082e2;
/* rgb */ color: rgb(64, 130, 226);
/* oklch */ color: oklch(61.2% 0.161 258.0);
Tailwind
colors: {
  custom: {
    50: '#88a5ec',
    500: '#4082e2',
    950: '#000000',
  },
}
SCSS
$custom: #4082e2;
$custom-light: #88a5ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4082e2",
  "rgb": {
    "r": 64,
    "g": 130,
    "b": 226
  },
  "hsl": {
    "h": 215.556,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.61174,
    "c": 0.16059,
    "h": 258
  },
  "luminance": 0.22546
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4082E2

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

Preview Lab → · Contrast checker → · Palette generator →

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