#4271D7#4271D7

#4271D7 is a mid, vivid blue. Relative luminance 0.179; OKLCH L 56.9% C 0.165 H 263.5°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#4271D7
RGBrgb(66, 113, 215)
HSLhsl(221, 65%, 55%)
HSVhsv(221, 69%, 84%)
CMYKcmyk(69.3%, 47.4%, 0%, 15.7%)
CIE-LABlab(49.34, 17.79, -57.16)
CIE-LCHlch(49.34, 59.86, 287.28°)
OKLaboklab(56.94% -0.0188 -0.1639)
OKLCHoklch(56.94% 0.165 263.5)
XYZxyz(20.4133, 17.8727, 66.6508)
Luminance0.1787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271D7 #D7A842
analogous
#42BBD7 #4271D7 #5D42D7
triadic
#4271D7 #D74271 #71D742
tetradic
#4271D7 #D742BB #D7A842 #42D75D
square
#4271D7 #D742BB #D7A842 #42D75D
split-complementary
#4271D7 #D75D42 #BBD742
monochromatic
#1C3C83 #2654B5 #4271D7 #7597E2 #A7BDEC

Accessibility & contrast

On white

4.59
#4271D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#4271D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4271D7
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271D7#FFFFFF#000000##FFFFFF
##4271D71.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A7DDB
Deuteranopia (green-blind)
#146FD5
Tritanopia (blue-blind)
#00899A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4271d7;
/* rgb */ color: rgb(66, 113, 215);
/* oklch */ color: oklch(56.9% 0.165 263.5);
Tailwind
colors: {
  custom: {
    50: '#8799e4',
    500: '#4271d7',
    950: '#000000',
  },
}
SCSS
$custom: #4271d7;
$custom-light: #8799e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4271d7",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 215
  },
  "hsl": {
    "h": 221.074,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56935,
    "c": 0.16494,
    "h": 263.5
  },
  "luminance": 0.17875
}

Semantic roles & 50–950 ramp

primary
#4271D7
secondary
#DAC69B
accent
#B340E8
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4271D7

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

Preview Lab → · Contrast checker → · Palette generator →

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