#4271BA#4271BA

#4271BA is a mid, vivid blue. Relative luminance 0.165; OKLCH L 55.1% C 0.125 H 258.9°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#4271BA
RGBrgb(66, 113, 186)
HSLhsl(217, 48%, 49%)
HSVhsv(217, 65%, 73%)
CMYKcmyk(64.5%, 39.2%, 0%, 27.1%)
CIE-LABlab(47.64, 7.47, -43.27)
CIE-LCHlch(47.64, 43.91, 279.80°)
OKLaboklab(55.07% -0.0241 -0.1231)
OKLCHoklch(55.07% 0.125 258.9)
XYZxyz(17.0117, 16.5121, 48.7355)
Luminance0.1651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271BA #BA8B42
analogous
#42ADBA #4271BA #4F42BA
triadic
#4271BA #BA4271 #71BA42
tetradic
#4271BA #BA42AD #BA8B42 #42BA4F
square
#4271BA #BA42AD #BA8B42 #42BA4F
split-complementary
#4271BA #BA4F42 #ADBA42
monochromatic
#223A60 #32568D #4271BA #6E92CB #9BB4DB

Accessibility & contrast

On white

4.88
#4271BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#4271BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4271BA
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271BA#FFFFFF#000000##FFFFFF
##4271BA1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5177BD
Deuteranopia (green-blind)
#3F6CB8
Tritanopia (blue-blind)
#00828C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4271ba;
/* rgb */ color: rgb(66, 113, 186);
/* oklch */ color: oklch(55.1% 0.125 258.9);
Tailwind
colors: {
  custom: {
    50: '#8299cf',
    500: '#4271ba',
    950: '#000000',
  },
}
SCSS
$custom: #4271ba;
$custom-light: #8299cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4271ba",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 186
  },
  "hsl": {
    "h": 216.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.55073,
    "c": 0.1254,
    "h": 258.9
  },
  "luminance": 0.16514
}

Semantic roles & 50–950 ramp

primary
#4271BA
secondary
#C8B290
accent
#A251D7
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #4271BA

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

Preview Lab → · Contrast checker → · Palette generator →

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