#4271BF#4271BF

#4271BF is a mid, vivid blue. Relative luminance 0.167; OKLCH L 55.4% C 0.132 H 260.0°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#4271BF
RGBrgb(66, 113, 191)
HSLhsl(217, 49%, 50%)
HSVhsv(217, 65%, 75%)
CMYKcmyk(65.4%, 40.8%, 0%, 25.1%)
CIE-LABlab(47.92, 9.23, -45.71)
CIE-LCHlch(47.92, 46.64, 281.42°)
OKLaboklab(55.38% -0.023 -0.1302)
OKLCHoklch(55.38% 0.132 260)
XYZxyz(17.5525, 16.7284, 51.5840)
Luminance0.1673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271BF #BF9042
analogous
#42AFBF #4271BF #5142BF
triadic
#4271BF #BF4271 #71BF42
tetradic
#4271BF #BF42AF #BF9042 #42BF51
square
#4271BF #BF42AF #BF9042 #42BF51
split-complementary
#4271BF #BF5142 #AFBF42
monochromatic
#223B65 #325692 #4271BF #7093CE #9DB6DE

Accessibility & contrast

On white

4.83
#4271BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#4271BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4271BF
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271BF#FFFFFF#000000##FFFFFF
##4271BF1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E78C2
Deuteranopia (green-blind)
#3B6CBD
Tritanopia (blue-blind)
#00838F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4271bf;
/* rgb */ color: rgb(66, 113, 191);
/* oklch */ color: oklch(55.4% 0.132 260.0);
Tailwind
colors: {
  custom: {
    50: '#8399d3',
    500: '#4271bf',
    950: '#000000',
  },
}
SCSS
$custom: #4271bf;
$custom-light: #8399d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4271bf",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 191
  },
  "hsl": {
    "h": 217.44,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55378,
    "c": 0.13225,
    "h": 260
  },
  "luminance": 0.1673
}

Semantic roles & 50–950 ramp

primary
#4271BF
secondary
#CAB593
accent
#A54FD9
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #4271BF

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

Preview Lab → · Contrast checker → · Palette generator →

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