#4271BC#4271BC

#4271BC is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.2% C 0.128 H 259.4°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#4271BC
RGBrgb(66, 113, 188)
HSLhsl(217, 48%, 50%)
HSVhsv(217, 65%, 74%)
CMYKcmyk(64.9%, 39.9%, 0%, 26.3%)
CIE-LABlab(47.75, 8.17, -44.25)
CIE-LCHlch(47.75, 45.00, 280.47°)
OKLaboklab(55.19% -0.0237 -0.1259)
OKLCHoklch(55.19% 0.128 259.4)
XYZxyz(17.2258, 16.5977, 49.8631)
Luminance0.1660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271BC #BC8D42
analogous
#42AEBC #4271BC #5042BC
triadic
#4271BC #BC4271 #71BC42
tetradic
#4271BC #BC42AE #BC8D42 #42BC50
square
#4271BC #BC42AE #BC8D42 #42BC50
split-complementary
#4271BC #BC5042 #AEBC42
monochromatic
#223B61 #32568F #4271BC #6F93CC #9CB5DC

Accessibility & contrast

On white

4.86
#4271BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#4271BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4271BC
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271BC#FFFFFF#000000##FFFFFF
##4271BC1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F77BF
Deuteranopia (green-blind)
#3E6CBA
Tritanopia (blue-blind)
#00828D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4271bc;
/* rgb */ color: rgb(66, 113, 188);
/* oklch */ color: oklch(55.2% 0.128 259.4);
Tailwind
colors: {
  custom: {
    50: '#8299d0',
    500: '#4271bc',
    950: '#000000',
  },
}
SCSS
$custom: #4271bc;
$custom-light: #8299d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4271bc",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 188
  },
  "hsl": {
    "h": 216.885,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55194,
    "c": 0.12814,
    "h": 259.4
  },
  "luminance": 0.16599
}

Semantic roles & 50–950 ramp

primary
#4271BC
secondary
#C9B391
accent
#A350D8
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0D14
muted
#7D7E82

Preview Lab

Preview with #4271BC

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

Preview Lab → · Contrast checker → · Palette generator →

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