#4271B5#4271B5

#4271B5 is a mid, moderate blue. Relative luminance 0.163; OKLCH L 54.8% C 0.119 H 257.7°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#4271B5
RGBrgb(66, 113, 181)
HSLhsl(215, 47%, 48%)
HSVhsv(215, 64%, 71%)
CMYKcmyk(63.5%, 37.6%, 0%, 29%)
CIE-LABlab(47.37, 5.72, -40.80)
CIE-LCHlch(47.37, 41.19, 277.98°)
OKLaboklab(54.78% -0.0253 -0.1158)
OKLCHoklch(54.78% 0.119 257.7)
XYZxyz(16.4894, 16.3032, 45.9849)
Luminance0.1631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271B5 #B58642
analogous
#42AAB5 #4271B5 #4C42B5
triadic
#4271B5 #B54271 #71B542
tetradic
#4271B5 #B542AA #B58642 #42B54C
square
#4271B5 #B542AA #B58642 #42B54C
split-complementary
#4271B5 #B54C42 #AAB542
monochromatic
#21395B #325588 #4271B5 #6B92C9 #98B3D9

Accessibility & contrast

On white

4.93
#4271B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#4271B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4271B5
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271B5#FFFFFF#000000##FFFFFF
##4271B51.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5376B8
Deuteranopia (green-blind)
#436BB4
Tritanopia (blue-blind)
#00808A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4271b5;
/* rgb */ color: rgb(66, 113, 181);
/* oklch */ color: oklch(54.8% 0.119 257.7);
Tailwind
colors: {
  custom: {
    50: '#8199cb',
    500: '#4271b5',
    950: '#000000',
  },
}
SCSS
$custom: #4271b5;
$custom-light: #8199cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4271b5",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 181
  },
  "hsl": {
    "h": 215.478,
    "s": 46.559,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54776,
    "c": 0.11856,
    "h": 257.7
  },
  "luminance": 0.16305
}

Semantic roles & 50–950 ramp

primary
#4271B5
secondary
#C5AE8E
accent
#A052D6
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #4271B5

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

Preview Lab → · Contrast checker → · Palette generator →

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