#4271EC#4271EC

#4271EC is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.4% C 0.193 H 265.1°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#4271EC
RGBrgb(66, 113, 236)
HSLhsl(223, 82%, 59%)
HSVhsv(223, 72%, 93%)
CMYKcmyk(72%, 52.1%, 0%, 7.5%)
CIE-LABlab(50.71, 25.31, -66.78)
CIE-LCHlch(50.71, 71.42, 290.76°)
OKLaboklab(58.42% -0.0164 -0.1922)
OKLCHoklch(58.42% 0.193 265.1)
XYZxyz(23.2869, 19.0221, 81.7850)
Luminance0.1903 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271EC #ECBD42
analogous
#42C6EC #4271EC #6842EC
triadic
#4271EC #EC4271 #71EC42
tetradic
#4271EC #EC42C6 #ECBD42 #42EC68
square
#4271EC #EC42C6 #ECBD42 #42EC68
split-complementary
#4271EC #EC6842 #C6EC42
monochromatic
#1039A3 #164CDB #4271EC #7A9BF2 #B1C5F7

Accessibility & contrast

On white

4.37
#4271EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#4271EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4271EC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271EC#FFFFFF#000000##000000
##4271EC1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A81F0
Deuteranopia (green-blind)
#0071EA
Tritanopia (blue-blind)
#008FA4
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4271ec;
/* rgb */ color: rgb(66, 113, 236);
/* oklch */ color: oklch(58.4% 0.193 265.1);
Tailwind
colors: {
  custom: {
    50: '#8b99f3',
    500: '#4271ec',
    950: '#000000',
  },
}
SCSS
$custom: #4271ec;
$custom-light: #8b99f3;
$custom-dark: #000000;
JSON
{
  "hex": "#4271ec",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 223.412,
    "s": 81.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.58418,
    "c": 0.19288,
    "h": 265.1
  },
  "luminance": 0.19025
}

Semantic roles & 50–950 ramp

primary
#4271EC
secondary
#E6D4A4
accent
#C130F8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #4271EC

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

Preview Lab → · Contrast checker → · Palette generator →

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