#4271DB#4271DB

#4271DB is a mid, vivid blue. Relative luminance 0.181; OKLCH L 57.2% C 0.170 H 263.9°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#4271DB
RGBrgb(66, 113, 219)
HSLhsl(222, 68%, 56%)
HSVhsv(222, 70%, 86%)
CMYKcmyk(69.9%, 48.4%, 0%, 14.1%)
CIE-LABlab(49.59, 19.22, -59.02)
CIE-LCHlch(49.59, 62.07, 288.04°)
OKLaboklab(57.21% -0.0182 -0.1693)
OKLCHoklch(57.21% 0.17 263.9)
XYZxyz(20.9336, 18.0808, 69.3908)
Luminance0.1808 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271DB #DBAC42
analogous
#42BDDB #4271DB #5F42DB
triadic
#4271DB #DB4271 #71DB42
tetradic
#4271DB #DB42BD #DBAC42 #42DB5F
square
#4271DB #DB42BD #DBAC42 #42DB5F
split-complementary
#4271DB #DB5F42 #BDDB42
monochromatic
#1A3C89 #2453BC #4271DB #7598E5 #A9BEEF

Accessibility & contrast

On white

4.55
#4271DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#4271DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4271DB
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271DB#FFFFFF#000000##000000
##4271DB1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#367DDF
Deuteranopia (green-blind)
#026FD9
Tritanopia (blue-blind)
#008A9B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #4271db;
/* rgb */ color: rgb(66, 113, 219);
/* oklch */ color: oklch(57.2% 0.170 263.9);
Tailwind
colors: {
  custom: {
    50: '#8899e7',
    500: '#4271db',
    950: '#000000',
  },
}
SCSS
$custom: #4271db;
$custom-light: #8899e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4271db",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 221.569,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57209,
    "c": 0.17032,
    "h": 263.9
  },
  "luminance": 0.18083
}

Semantic roles & 50–950 ramp

primary
#4271DB
secondary
#DCC99D
accent
#B53DEB
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4271DB

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

Preview Lab → · Contrast checker → · Palette generator →

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