#4271D4#4271D4

#4271D4 is a mid, vivid blue. Relative luminance 0.177; OKLCH L 56.7% C 0.161 H 263.1°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#4271D4
RGBrgb(66, 113, 212)
HSLhsl(221, 63%, 55%)
HSVhsv(221, 69%, 83%)
CMYKcmyk(68.9%, 46.7%, 0%, 16.9%)
CIE-LABlab(49.15, 16.71, -55.75)
CIE-LCHlch(49.15, 58.21, 286.69°)
OKLaboklab(56.73% -0.0192 -0.1597)
OKLCHoklch(56.73% 0.161 263.1)
XYZxyz(20.0314, 17.7199, 64.6392)
Luminance0.1772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271D4 #D4A542
analogous
#42BAD4 #4271D4 #5C42D4
triadic
#4271D4 #D44271 #71D442
tetradic
#4271D4 #D442BA #D4A542 #42D45C
square
#4271D4 #D442BA #D4A542 #42D45C
split-complementary
#4271D4 #D45C42 #BAD442
monochromatic
#1D3C7F #2854B1 #4271D4 #7496DF #A6BCEB

Accessibility & contrast

On white

4.62
#4271D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#4271D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4271D4
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271D4#FFFFFF#000000##FFFFFF
##4271D41.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D7CD8
Deuteranopia (green-blind)
#1D6FD2
Tritanopia (blue-blind)
#008898
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4271d4;
/* rgb */ color: rgb(66, 113, 212);
/* oklch */ color: oklch(56.7% 0.161 263.1);
Tailwind
colors: {
  custom: {
    50: '#8799e2',
    500: '#4271d4',
    950: '#000000',
  },
}
SCSS
$custom: #4271d4;
$custom-light: #8799e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4271d4",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 212
  },
  "hsl": {
    "h": 220.685,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.56732,
    "c": 0.16089,
    "h": 263.1
  },
  "luminance": 0.17722
}

Semantic roles & 50–950 ramp

primary
#4271D4
secondary
#D8C49A
accent
#B142E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0D0D15
muted
#7D7E83

Preview Lab

Preview with #4271D4

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

Preview Lab → · Contrast checker → · Palette generator →

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