#4271EB#4271EB

#4271EB is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.3% C 0.192 H 265.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#4271EB
RGBrgb(66, 113, 235)
HSLhsl(223, 81%, 59%)
HSVhsv(223, 72%, 92%)
CMYKcmyk(71.9%, 51.9%, 0%, 7.8%)
CIE-LABlab(50.65, 24.95, -66.33)
CIE-LCHlch(50.65, 70.87, 290.62°)
OKLaboklab(58.35% -0.0165 -0.1909)
OKLCHoklch(58.35% 0.192 265.1)
XYZxyz(23.1420, 18.9642, 81.0220)
Luminance0.1897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271EB #EBBC42
analogous
#42C5EB #4271EB #6842EB
triadic
#4271EB #EB4271 #71EB42
tetradic
#4271EB #EB42C5 #EBBC42 #42EB68
square
#4271EB #EB42C5 #EBBC42 #42EB68
split-complementary
#4271EB #EB6842 #C5EB42
monochromatic
#1139A2 #174DD9 #4271EB #799BF1 #B1C4F7

Accessibility & contrast

On white

4.38
#4271EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#4271EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4271EB
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271EB#FFFFFF#000000##000000
##4271EB1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C81EF
Deuteranopia (green-blind)
#0071E9
Tritanopia (blue-blind)
#008EA3
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4271eb;
/* rgb */ color: rgb(66, 113, 235);
/* oklch */ color: oklch(58.3% 0.192 265.1);
Tailwind
colors: {
  custom: {
    50: '#8b99f2',
    500: '#4271eb',
    950: '#000000',
  },
}
SCSS
$custom: #4271eb;
$custom-light: #8b99f2;
$custom-dark: #000000;
JSON
{
  "hex": "#4271eb",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 223.314,
    "s": 80.861,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58345,
    "c": 0.19157,
    "h": 265.1
  },
  "luminance": 0.18967
}

Semantic roles & 50–950 ramp

primary
#4271EB
secondary
#E6D3A3
accent
#C031F7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #4271EB

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

Preview Lab → · Contrast checker → · Palette generator →

#4271EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva