#4271C7#4271C7

#4271C7 is a mid, vivid blue. Relative luminance 0.171; OKLCH L 55.9% C 0.143 H 261.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#4271C7
RGBrgb(66, 113, 199)
HSLhsl(219, 54%, 52%)
HSVhsv(219, 67%, 78%)
CMYKcmyk(66.8%, 43.2%, 0%, 22%)
CIE-LABlab(48.37, 12.07, -49.58)
CIE-LCHlch(48.37, 51.03, 283.68°)
OKLaboklab(55.88% -0.0214 -0.1416)
OKLCHoklch(55.88% 0.143 261.4)
XYZxyz(18.4570, 17.0902, 56.3478)
Luminance0.1709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271C7 #C79842
analogous
#42B4C7 #4271C7 #5642C7
triadic
#4271C7 #C74271 #71C742
tetradic
#4271C7 #C742B4 #C79842 #42C756
square
#4271C7 #C742B4 #C79842 #42C756
split-complementary
#4271C7 #C75642 #B4C742
monochromatic
#213C6E #2F569D #4271C7 #7194D5 #A0B8E3

Accessibility & contrast

On white

4.75
#4271C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#4271C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4271C7
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271C7#FFFFFF#000000##FFFFFF
##4271C71.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4879CA
Deuteranopia (green-blind)
#326DC5
Tritanopia (blue-blind)
#008592
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4271c7;
/* rgb */ color: rgb(66, 113, 199);
/* oklch */ color: oklch(55.9% 0.143 261.4);
Tailwind
colors: {
  custom: {
    50: '#8499d8',
    500: '#4271c7',
    950: '#000000',
  },
}
SCSS
$custom: #4271c7;
$custom-light: #8499d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4271c7",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 199
  },
  "hsl": {
    "h": 218.797,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.55879,
    "c": 0.1432,
    "h": 261.4
  },
  "luminance": 0.17092
}

Semantic roles & 50–950 ramp

primary
#4271C7
secondary
#D0BB95
accent
#AA4ADE
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #4271C7

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

Preview Lab → · Contrast checker → · Palette generator →

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