#4271D6#4271D6

#4271D6 is a mid, vivid blue. Relative luminance 0.178; OKLCH L 56.9% C 0.164 H 263.4°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#4271D6
RGBrgb(66, 113, 214)
HSLhsl(221, 64%, 55%)
HSVhsv(221, 69%, 84%)
CMYKcmyk(69.2%, 47.2%, 0%, 16.1%)
CIE-LABlab(49.28, 17.43, -56.69)
CIE-LCHlch(49.28, 59.31, 287.09°)
OKLaboklab(56.87% -0.0189 -0.1625)
OKLCHoklch(56.87% 0.164 263.4)
XYZxyz(20.2852, 17.8215, 65.9761)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271D6 #D6A742
analogous
#42BBD6 #4271D6 #5D42D6
triadic
#4271D6 #D64271 #71D642
tetradic
#4271D6 #D642BB #D6A742 #42D65D
square
#4271D6 #D642BB #D6A742 #42D65D
split-complementary
#4271D6 #D65D42 #BBD642
monochromatic
#1C3C82 #2754B4 #4271D6 #7497E1 #A7BDEC

Accessibility & contrast

On white

4.60
#4271D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#4271D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4271D6
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271D6#FFFFFF#000000##FFFFFF
##4271D61.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B7CDA
Deuteranopia (green-blind)
#176FD4
Tritanopia (blue-blind)
#008999
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4271d6;
/* rgb */ color: rgb(66, 113, 214);
/* oklch */ color: oklch(56.9% 0.164 263.4);
Tailwind
colors: {
  custom: {
    50: '#8799e3',
    500: '#4271d6',
    950: '#000000',
  },
}
SCSS
$custom: #4271d6;
$custom-light: #8799e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4271d6",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 214
  },
  "hsl": {
    "h": 220.946,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.56867,
    "c": 0.16359,
    "h": 263.4
  },
  "luminance": 0.17824
}

Semantic roles & 50–950 ramp

primary
#4271D6
secondary
#D9C59B
accent
#B240E7
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0D0D15
muted
#7D7E84

Preview Lab

Preview with #4271D6

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

Preview Lab → · Contrast checker → · Palette generator →

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