#4271C2#4271C2

#4271C2 is a mid, vivid blue. Relative luminance 0.169; OKLCH L 55.6% C 0.136 H 260.5°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#4271C2
RGBrgb(66, 113, 194)
HSLhsl(218, 51%, 51%)
HSVhsv(218, 66%, 76%)
CMYKcmyk(66%, 41.8%, 0%, 23.9%)
CIE-LABlab(48.09, 10.29, -47.17)
CIE-LCHlch(48.09, 48.28, 282.31°)
OKLaboklab(55.56% -0.0224 -0.1345)
OKLCHoklch(55.56% 0.136 260.5)
XYZxyz(17.8860, 16.8618, 53.3405)
Luminance0.1686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271C2 #C29342
analogous
#42B1C2 #4271C2 #5342C2
triadic
#4271C2 #C24271 #71C242
tetradic
#4271C2 #C242B1 #C29342 #42C253
square
#4271C2 #C242B1 #C29342 #42C253
split-complementary
#4271C2 #C25342 #B1C242
monochromatic
#223B68 #315696 #4271C2 #7094D1 #9FB7E0

Accessibility & contrast

On white

4.80
#4271C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#4271C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4271C2
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271C2#FFFFFF#000000##FFFFFF
##4271C21.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C79C5
Deuteranopia (green-blind)
#386DC0
Tritanopia (blue-blind)
#008490
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4271c2;
/* rgb */ color: rgb(66, 113, 194);
/* oklch */ color: oklch(55.6% 0.136 260.5);
Tailwind
colors: {
  custom: {
    50: '#8399d5',
    500: '#4271c2',
    950: '#000000',
  },
}
SCSS
$custom: #4271c2;
$custom-light: #8399d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4271c2",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 194
  },
  "hsl": {
    "h": 217.969,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.55564,
    "c": 0.13636,
    "h": 260.5
  },
  "luminance": 0.16864
}

Semantic roles & 50–950 ramp

primary
#4271C2
secondary
#CCB794
accent
#A74DDB
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #4271C2

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

Preview Lab → · Contrast checker → · Palette generator →

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