#4271C4#4271C4

#4271C4 is a mid, vivid blue. Relative luminance 0.170; OKLCH L 55.7% C 0.139 H 260.9°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#4271C4
RGBrgb(66, 113, 196)
HSLhsl(218, 52%, 51%)
HSVhsv(218, 66%, 77%)
CMYKcmyk(66.3%, 42.3%, 0%, 23.1%)
CIE-LABlab(48.20, 11.00, -48.14)
CIE-LCHlch(48.20, 49.38, 282.88°)
OKLaboklab(55.69% -0.022 -0.1373)
OKLCHoklch(55.69% 0.139 260.9)
XYZxyz(18.1122, 16.9523, 54.5314)
Luminance0.1695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271C4 #C49542
analogous
#42B2C4 #4271C4 #5442C4
triadic
#4271C4 #C44271 #71C442
tetradic
#4271C4 #C442B2 #C49542 #42C454
square
#4271C4 #C442B2 #C49542 #42C454
split-complementary
#4271C4 #C45442 #B2C442
monochromatic
#213C6A #305699 #4271C4 #7194D3 #9FB7E1

Accessibility & contrast

On white

4.78
#4271C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#4271C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4271C4
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271C4#FFFFFF#000000##FFFFFF
##4271C41.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A79C7
Deuteranopia (green-blind)
#366DC2
Tritanopia (blue-blind)
#008491
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4271c4;
/* rgb */ color: rgb(66, 113, 196);
/* oklch */ color: oklch(55.7% 0.139 260.9);
Tailwind
colors: {
  custom: {
    50: '#8499d6',
    500: '#4271c4',
    950: '#000000',
  },
}
SCSS
$custom: #4271c4;
$custom-light: #8499d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4271c4",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 196
  },
  "hsl": {
    "h": 218.308,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.55689,
    "c": 0.1391,
    "h": 260.9
  },
  "luminance": 0.16954
}

Semantic roles & 50–950 ramp

primary
#4271C4
secondary
#CEB994
accent
#A84CDC
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #4271C4

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

Preview Lab → · Contrast checker → · Palette generator →

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