#4271D5#4271D5

#4271D5 is a mid, vivid blue. Relative luminance 0.178; OKLCH L 56.8% C 0.162 H 263.2°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#4271D5
RGBrgb(66, 113, 213)
HSLhsl(221, 64%, 55%)
HSVhsv(221, 69%, 84%)
CMYKcmyk(69%, 46.9%, 0%, 16.5%)
CIE-LABlab(49.22, 17.07, -56.22)
CIE-LCHlch(49.22, 58.76, 286.89°)
OKLaboklab(56.8% -0.0191 -0.1611)
OKLCHoklch(56.8% 0.162 263.2)
XYZxyz(20.1579, 17.7705, 65.3056)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271D5 #D5A642
analogous
#42BBD5 #4271D5 #5C42D5
triadic
#4271D5 #D54271 #71D542
tetradic
#4271D5 #D542BB #D5A642 #42D55C
square
#4271D5 #D542BB #D5A642 #42D55C
split-complementary
#4271D5 #D55C42 #BBD542
monochromatic
#1C3C80 #2854B2 #4271D5 #7497E0 #A6BCEB

Accessibility & contrast

On white

4.61
#4271D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#4271D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4271D5
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271D5#FFFFFF#000000##FFFFFF
##4271D51.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C7CD9
Deuteranopia (green-blind)
#1A6FD3
Tritanopia (blue-blind)
#008899
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4271d5;
/* rgb */ color: rgb(66, 113, 213);
/* oklch */ color: oklch(56.8% 0.162 263.2);
Tailwind
colors: {
  custom: {
    50: '#8799e2',
    500: '#4271d5',
    950: '#000000',
  },
}
SCSS
$custom: #4271d5;
$custom-light: #8799e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4271d5",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 213
  },
  "hsl": {
    "h": 220.816,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56799,
    "c": 0.16224,
    "h": 263.2
  },
  "luminance": 0.17773
}

Semantic roles & 50–950 ramp

primary
#4271D5
secondary
#D8C59A
accent
#B241E7
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0D0D15
muted
#7D7E83

Preview Lab

Preview with #4271D5

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

Preview Lab → · Contrast checker → · Palette generator →

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