#4271CF#4271CF

#4271CF is a mid, vivid blue. Relative luminance 0.175; OKLCH L 56.4% C 0.154 H 262.5°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#4271CF
RGBrgb(66, 113, 207)
HSLhsl(220, 59%, 54%)
HSVhsv(220, 68%, 81%)
CMYKcmyk(68.1%, 45.4%, 0%, 18.8%)
CIE-LABlab(48.85, 14.92, -53.40)
CIE-LCHlch(48.85, 55.44, 285.61°)
OKLaboklab(56.4% -0.02 -0.1528)
OKLCHoklch(56.4% 0.154 262.5)
XYZxyz(19.4104, 17.4715, 61.3688)
Luminance0.1747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271CF #CFA042
analogous
#42B7CF #4271CF #5942CF
triadic
#4271CF #CF4271 #71CF42
tetradic
#4271CF #CF42B7 #CFA042 #42CF59
square
#4271CF #CF42B7 #CFA042 #42CF59
split-complementary
#4271CF #CF5942 #B7CF42
monochromatic
#1F3C78 #2B55A9 #4271CF #7396DB #A4BAE8

Accessibility & contrast

On white

4.67
#4271CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#4271CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4271CF
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271CF#FFFFFF#000000##FFFFFF
##4271CF1.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#427BD3
Deuteranopia (green-blind)
#276ECD
Tritanopia (blue-blind)
#008796
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4271cf;
/* rgb */ color: rgb(66, 113, 207);
/* oklch */ color: oklch(56.4% 0.154 262.5);
Tailwind
colors: {
  custom: {
    50: '#8699de',
    500: '#4271cf',
    950: '#000000',
  },
}
SCSS
$custom: #4271cf;
$custom-light: #8699de;
$custom-dark: #000000;
JSON
{
  "hex": "#4271cf",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 207
  },
  "hsl": {
    "h": 220,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56399,
    "c": 0.15411,
    "h": 262.5
  },
  "luminance": 0.17473
}

Semantic roles & 50–950 ramp

primary
#4271CF
secondary
#D5C098
accent
#AE45E3
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4271CF

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

Preview Lab → · Contrast checker → · Palette generator →

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