#4271D8#4271D8

#4271D8 is a mid, vivid blue. Relative luminance 0.179; OKLCH L 57.0% C 0.166 H 263.6°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#4271D8
RGBrgb(66, 113, 216)
HSLhsl(221, 66%, 55%)
HSVhsv(221, 69%, 85%)
CMYKcmyk(69.4%, 47.7%, 0%, 15.3%)
CIE-LABlab(49.40, 18.14, -57.62)
CIE-LCHlch(49.40, 60.41, 287.48°)
OKLaboklab(57% -0.0186 -0.1652)
OKLCHoklch(57% 0.166 263.6)
XYZxyz(20.5422, 17.9243, 67.3296)
Luminance0.1793 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271D8 #D8A942
analogous
#42BCD8 #4271D8 #5E42D8
triadic
#4271D8 #D84271 #71D842
tetradic
#4271D8 #D842BC #D8A942 #42D85E
square
#4271D8 #D842BC #D8A942 #42D85E
split-complementary
#4271D8 #D85E42 #BCD842
monochromatic
#1B3C84 #2653B7 #4271D8 #7597E2 #A7BDED

Accessibility & contrast

On white

4.58
#4271D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#4271D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4271D8
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271D8#FFFFFF#000000##000000
##4271D81.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#397DDC
Deuteranopia (green-blind)
#116FD6
Tritanopia (blue-blind)
#00899A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4271d8;
/* rgb */ color: rgb(66, 113, 216);
/* oklch */ color: oklch(57.0% 0.166 263.6);
Tailwind
colors: {
  custom: {
    50: '#8799e5',
    500: '#4271d8',
    950: '#000000',
  },
}
SCSS
$custom: #4271d8;
$custom-light: #8799e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4271d8",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 216
  },
  "hsl": {
    "h": 221.2,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.57003,
    "c": 0.16629,
    "h": 263.6
  },
  "luminance": 0.17926
}

Semantic roles & 50–950 ramp

primary
#4271D8
secondary
#DAC79C
accent
#B43FE9
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4271D8

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

Preview Lab → · Contrast checker → · Palette generator →

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