#4271C8#4271C8

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

Color values

HEX#4271C8
RGBrgb(66, 113, 200)
HSLhsl(219, 55%, 52%)
HSVhsv(219, 67%, 78%)
CMYKcmyk(67%, 43.5%, 0%, 21.6%)
CIE-LABlab(48.43, 12.43, -50.06)
CIE-LCHlch(48.43, 51.58, 283.94°)
OKLaboklab(55.94% -0.0212 -0.143)
OKLCHoklch(55.94% 0.145 261.6)
XYZxyz(18.5735, 17.1368, 56.9613)
Luminance0.1714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271C8 #C89942
analogous
#42B4C8 #4271C8 #5642C8
triadic
#4271C8 #C84271 #71C842
tetradic
#4271C8 #C842B4 #C89942 #42C856
square
#4271C8 #C842B4 #C89942 #42C856
split-complementary
#4271C8 #C85642 #B4C842
monochromatic
#203C6F #2E569F #4271C8 #7195D6 #A1B8E4

Accessibility & contrast

On white

4.74
#4271C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#4271C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4271C8
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271C8#FFFFFF#000000##FFFFFF
##4271C81.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#477ACB
Deuteranopia (green-blind)
#316DC6
Tritanopia (blue-blind)
#008593
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4271c8;
/* rgb */ color: rgb(66, 113, 200);
/* oklch */ color: oklch(55.9% 0.145 261.6);
Tailwind
colors: {
  custom: {
    50: '#8499d9',
    500: '#4271c8',
    950: '#000000',
  },
}
SCSS
$custom: #4271c8;
$custom-light: #8499d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4271c8",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 200
  },
  "hsl": {
    "h": 218.955,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55943,
    "c": 0.14457,
    "h": 261.6
  },
  "luminance": 0.17139
}

Semantic roles & 50–950 ramp

primary
#4271C8
secondary
#D0BC96
accent
#AA4ADE
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4271C8

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

Preview Lab → · Contrast checker → · Palette generator →

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