#4271EE#4271EE

#4271EE is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.6% C 0.195 H 265.2°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#4271EE
RGBrgb(66, 113, 238)
HSLhsl(224, 83%, 60%)
HSVhsv(224, 72%, 93%)
CMYKcmyk(72.3%, 52.5%, 0%, 6.7%)
CIE-LABlab(50.85, 26.03, -67.68)
CIE-LCHlch(50.85, 72.51, 291.04°)
OKLaboklab(58.56% -0.0162 -0.1948)
OKLCHoklch(58.56% 0.195 265.2)
XYZxyz(23.5791, 19.1390, 83.3239)
Luminance0.1914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271EE #EEBF42
analogous
#42C7EE #4271EE #6942EE
triadic
#4271EE #EE4271 #71EE42
tetradic
#4271EE #EE42C7 #EEBF42 #42EE69
square
#4271EE #EE42C7 #EEBF42 #42EE69
split-complementary
#4271EE #EE6942 #C7EE42
monochromatic
#0F38A7 #144BDF #4271EE #7A9BF3 #B2C5F8

Accessibility & contrast

On white

4.35
#4271EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#4271EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4271EE
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271EE#FFFFFF#000000##000000
##4271EE1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1481F2
Deuteranopia (green-blind)
#0072EC
Tritanopia (blue-blind)
#008FA5
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4271ee;
/* rgb */ color: rgb(66, 113, 238);
/* oklch */ color: oklch(58.6% 0.195 265.2);
Tailwind
colors: {
  custom: {
    50: '#8c99f4',
    500: '#4271ee',
    950: '#000000',
  },
}
SCSS
$custom: #4271ee;
$custom-light: #8c99f4;
$custom-dark: #000000;
JSON
{
  "hex": "#4271ee",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 238
  },
  "hsl": {
    "h": 223.605,
    "s": 83.495,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58564,
    "c": 0.19549,
    "h": 265.2
  },
  "luminance": 0.19142
}

Semantic roles & 50–950 ramp

primary
#4271EE
secondary
#E7D5A5
accent
#C22EFA
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #4271EE

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

Preview Lab → · Contrast checker → · Palette generator →

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