#4271EA#4271EA

#4271EA is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.3% C 0.190 H 265.0°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#4271EA
RGBrgb(66, 113, 234)
HSLhsl(223, 80%, 59%)
HSVhsv(223, 72%, 92%)
CMYKcmyk(71.8%, 51.7%, 0%, 8.2%)
CIE-LABlab(50.58, 24.60, -65.88)
CIE-LCHlch(50.58, 70.32, 290.47°)
OKLaboklab(58.27% -0.0165 -0.1895)
OKLCHoklch(58.27% 0.19 265)
XYZxyz(22.9979, 18.9066, 80.2632)
Luminance0.1891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271EA #EABB42
analogous
#42C5EA #4271EA #6742EA
triadic
#4271EA #EA4271 #71EA42
tetradic
#4271EA #EA42C5 #EABB42 #42EA67
square
#4271EA #EA42C5 #EABB42 #42EA67
split-complementary
#4271EA #EA6742 #C5EA42
monochromatic
#123AA0 #184DD7 #4271EA #799AF0 #B0C4F6

Accessibility & contrast

On white

4.39
#4271EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#4271EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4271EA
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271EA#FFFFFF#000000##000000
##4271EA1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F81EE
Deuteranopia (green-blind)
#0071E8
Tritanopia (blue-blind)
#008EA3
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4271ea;
/* rgb */ color: rgb(66, 113, 234);
/* oklch */ color: oklch(58.3% 0.190 265.0);
Tailwind
colors: {
  custom: {
    50: '#8b99f1',
    500: '#4271ea',
    950: '#000000',
  },
}
SCSS
$custom: #4271ea;
$custom-light: #8b99f1;
$custom-dark: #000000;
JSON
{
  "hex": "#4271ea",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 223.214,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.58272,
    "c": 0.19025,
    "h": 265
  },
  "luminance": 0.18909
}

Semantic roles & 50–950 ramp

primary
#4271EA
secondary
#E5D2A3
accent
#BF31F6
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0D0D17
muted
#7E7E85

Preview Lab

Preview with #4271EA

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

Preview Lab → · Contrast checker → · Palette generator →

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