#4271BD#4271BD

#4271BD is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.3% C 0.130 H 259.6°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#4271BD
RGBrgb(66, 113, 189)
HSLhsl(217, 48%, 50%)
HSVhsv(217, 65%, 74%)
CMYKcmyk(65.1%, 40.2%, 0%, 25.9%)
CIE-LABlab(47.80, 8.53, -44.74)
CIE-LCHlch(47.80, 45.54, 280.79°)
OKLaboklab(55.26% -0.0234 -0.1274)
OKLCHoklch(55.26% 0.13 259.6)
XYZxyz(17.3339, 16.6410, 50.4328)
Luminance0.1664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271BD #BD8E42
analogous
#42AFBD #4271BD #5042BD
triadic
#4271BD #BD4271 #71BD42
tetradic
#4271BD #BD42AF #BD8E42 #42BD50
square
#4271BD #BD42AF #BD8E42 #42BD50
split-complementary
#4271BD #BD5042 #AFBD42
monochromatic
#223B62 #325690 #4271BD #6F93CD #9DB5DD

Accessibility & contrast

On white

4.85
#4271BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#4271BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4271BD
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271BD#FFFFFF#000000##FFFFFF
##4271BD1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F78C0
Deuteranopia (green-blind)
#3D6CBB
Tritanopia (blue-blind)
#00828E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4271bd;
/* rgb */ color: rgb(66, 113, 189);
/* oklch */ color: oklch(55.3% 0.130 259.6);
Tailwind
colors: {
  custom: {
    50: '#8299d1',
    500: '#4271bd',
    950: '#000000',
  },
}
SCSS
$custom: #4271bd;
$custom-light: #8299d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4271bd",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 189
  },
  "hsl": {
    "h": 217.073,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.55255,
    "c": 0.12951,
    "h": 259.6
  },
  "luminance": 0.16643
}

Semantic roles & 50–950 ramp

primary
#4271BD
secondary
#C9B492
accent
#A450D8
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0D14
muted
#7D7E82

Preview Lab

Preview with #4271BD

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

Preview Lab → · Contrast checker → · Palette generator →

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