#4271BE#4271BE

#4271BE is a mid, vivid blue. Relative luminance 0.167; OKLCH L 55.3% C 0.131 H 259.8°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#4271BE
RGBrgb(66, 113, 190)
HSLhsl(217, 49%, 50%)
HSVhsv(217, 65%, 75%)
CMYKcmyk(65.3%, 40.5%, 0%, 25.5%)
CIE-LABlab(47.86, 8.88, -45.23)
CIE-LCHlch(47.86, 46.09, 281.11°)
OKLaboklab(55.32% -0.0232 -0.1288)
OKLCHoklch(55.32% 0.131 259.8)
XYZxyz(17.4429, 16.6845, 51.0064)
Luminance0.1669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271BE #BE8F42
analogous
#42AFBE #4271BE #5142BE
triadic
#4271BE #BE4271 #71BE42
tetradic
#4271BE #BE42AF #BE8F42 #42BE51
square
#4271BE #BE42AF #BE8F42 #42BE51
split-complementary
#4271BE #BE5142 #AFBE42
monochromatic
#223B63 #325691 #4271BE #7093CE #9DB5DD

Accessibility & contrast

On white

4.84
#4271BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#4271BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4271BE
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271BE#FFFFFF#000000##FFFFFF
##4271BE1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E78C1
Deuteranopia (green-blind)
#3C6CBC
Tritanopia (blue-blind)
#00838E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4271be;
/* rgb */ color: rgb(66, 113, 190);
/* oklch */ color: oklch(55.3% 0.131 259.8);
Tailwind
colors: {
  custom: {
    50: '#8399d2',
    500: '#4271be',
    950: '#000000',
  },
}
SCSS
$custom: #4271be;
$custom-light: #8399d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4271be",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 190
  },
  "hsl": {
    "h": 217.258,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55316,
    "c": 0.13088,
    "h": 259.8
  },
  "luminance": 0.16686
}

Semantic roles & 50–950 ramp

primary
#4271BE
secondary
#CAB592
accent
#A44FD8
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0D14
muted
#7D7E82

Preview Lab

Preview with #4271BE

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

Preview Lab → · Contrast checker → · Palette generator →

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