#4271D2#4271D2

#4271D2 is a mid, vivid blue. Relative luminance 0.176; OKLCH L 56.6% C 0.158 H 262.9°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#4271D2
RGBrgb(66, 113, 210)
HSLhsl(220, 62%, 54%)
HSVhsv(220, 69%, 82%)
CMYKcmyk(68.6%, 46.2%, 0%, 17.6%)
CIE-LABlab(49.03, 16.00, -54.81)
CIE-LCHlch(49.03, 57.10, 286.27°)
OKLaboklab(56.6% -0.0195 -0.157)
OKLCHoklch(56.6% 0.158 262.9)
XYZxyz(19.7806, 17.6196, 63.3187)
Luminance0.1762 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271D2 #D2A342
analogous
#42B9D2 #4271D2 #5B42D2
triadic
#4271D2 #D24271 #71D242
tetradic
#4271D2 #D242B9 #D2A342 #42D25B
square
#4271D2 #D242B9 #D2A342 #42D25B
split-complementary
#4271D2 #D25B42 #B9D242
monochromatic
#1E3C7C #2954AD #4271D2 #7396DE #A5BBEA

Accessibility & contrast

On white

4.64
#4271D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#4271D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4271D2
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271D2#FFFFFF#000000##FFFFFF
##4271D21.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F7CD6
Deuteranopia (green-blind)
#216ED0
Tritanopia (blue-blind)
#008897
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4271d2;
/* rgb */ color: rgb(66, 113, 210);
/* oklch */ color: oklch(56.6% 0.158 262.9);
Tailwind
colors: {
  custom: {
    50: '#8699e0',
    500: '#4271d2',
    950: '#000000',
  },
}
SCSS
$custom: #4271d2;
$custom-light: #8699e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4271d2",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 210
  },
  "hsl": {
    "h": 220.417,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56598,
    "c": 0.15818,
    "h": 262.9
  },
  "luminance": 0.17622
}

Semantic roles & 50–950 ramp

primary
#4271D2
secondary
#D7C399
accent
#B043E5
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4271D2

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

Preview Lab → · Contrast checker → · Palette generator →

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