#4271BB#4271BB

#4271BB is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.1% C 0.127 H 259.1°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#4271BB
RGBrgb(66, 113, 187)
HSLhsl(217, 48%, 50%)
HSVhsv(217, 65%, 73%)
CMYKcmyk(64.7%, 39.6%, 0%, 26.7%)
CIE-LABlab(47.69, 7.82, -43.76)
CIE-LCHlch(47.69, 44.45, 280.14°)
OKLaboklab(55.13% -0.0239 -0.1245)
OKLCHoklch(55.13% 0.127 259.1)
XYZxyz(17.1183, 16.5547, 49.2973)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271BB #BB8C42
analogous
#42AEBB #4271BB #4F42BB
triadic
#4271BB #BB4271 #71BB42
tetradic
#4271BB #BB42AE #BB8C42 #42BB4F
square
#4271BB #BB42AE #BB8C42 #42BB4F
split-complementary
#4271BB #BB4F42 #AEBB42
monochromatic
#223A61 #32568E #4271BB #6E93CC #9CB5DC

Accessibility & contrast

On white

4.87
#4271BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#4271BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4271BB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271BB#FFFFFF#000000##FFFFFF
##4271BB1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5077BE
Deuteranopia (green-blind)
#3E6CB9
Tritanopia (blue-blind)
#00828D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4271bb;
/* rgb */ color: rgb(66, 113, 187);
/* oklch */ color: oklch(55.1% 0.127 259.1);
Tailwind
colors: {
  custom: {
    50: '#8299d0',
    500: '#4271bb',
    950: '#000000',
  },
}
SCSS
$custom: #4271bb;
$custom-light: #8299d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4271bb",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 216.694,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55133,
    "c": 0.12677,
    "h": 259.1
  },
  "luminance": 0.16556
}

Semantic roles & 50–950 ramp

primary
#4271BB
secondary
#C8B391
accent
#A350D7
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #4271BB

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

Preview Lab → · Contrast checker → · Palette generator →

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