#4271C5#4271C5

#4271C5 is a mid, vivid blue. Relative luminance 0.170; OKLCH L 55.8% C 0.140 H 261.1°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#4271C5
RGBrgb(66, 113, 197)
HSLhsl(218, 53%, 52%)
HSVhsv(218, 66%, 77%)
CMYKcmyk(66.5%, 42.6%, 0%, 22.7%)
CIE-LABlab(48.26, 11.36, -48.62)
CIE-LCHlch(48.26, 49.93, 283.15°)
OKLaboklab(55.75% -0.0218 -0.1388)
OKLCHoklch(55.75% 0.14 261.1)
XYZxyz(18.2264, 16.9979, 55.1329)
Luminance0.1700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271C5 #C59642
analogous
#42B3C5 #4271C5 #5542C5
triadic
#4271C5 #C54271 #71C542
tetradic
#4271C5 #C542B3 #C59642 #42C555
square
#4271C5 #C542B3 #C59642 #42C555
split-complementary
#4271C5 #C55542 #B3C542
monochromatic
#213C6C #2F569A #4271C5 #7194D3 #A0B7E2

Accessibility & contrast

On white

4.77
#4271C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#4271C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4271C5
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271C5#FFFFFF#000000##FFFFFF
##4271C51.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A79C8
Deuteranopia (green-blind)
#346DC3
Tritanopia (blue-blind)
#008491
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4271c5;
/* rgb */ color: rgb(66, 113, 197);
/* oklch */ color: oklch(55.8% 0.140 261.1);
Tailwind
colors: {
  custom: {
    50: '#8499d7',
    500: '#4271c5',
    950: '#000000',
  },
}
SCSS
$custom: #4271c5;
$custom-light: #8499d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4271c5",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 197
  },
  "hsl": {
    "h": 218.473,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55752,
    "c": 0.14047,
    "h": 261.1
  },
  "luminance": 0.17
}

Semantic roles & 50–950 ramp

primary
#4271C5
secondary
#CEBA95
accent
#A84BDC
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #4271C5

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

Preview Lab → · Contrast checker → · Palette generator →

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