#4271B2#4271B2

#4271B2 is a mid, moderate cyan. Relative luminance 0.162; OKLCH L 54.6% C 0.114 H 256.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#4271B2
RGBrgb(66, 113, 178)
HSLhsl(215, 46%, 48%)
HSVhsv(215, 63%, 70%)
CMYKcmyk(62.9%, 36.5%, 0%, 30.2%)
CIE-LABlab(47.21, 4.67, -39.30)
CIE-LCHlch(47.21, 39.58, 276.78°)
OKLaboklab(54.6% -0.026 -0.1115)
OKLCHoklch(54.6% 0.114 256.9)
XYZxyz(16.1849, 16.1814, 44.3812)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271B2 #B28342
analogous
#42A9B2 #4271B2 #4B42B2
triadic
#4271B2 #B24271 #71B242
tetradic
#4271B2 #B242A9 #B28342 #42B24B
square
#4271B2 #B242A9 #B28342 #42B24B
split-complementary
#4271B2 #B24B42 #A9B242
monochromatic
#213859 #315585 #4271B2 #6A91C8 #96B2D8

Accessibility & contrast

On white

4.96
#4271B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#4271B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4271B2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271B2#FFFFFF#000000##FFFFFF
##4271B21.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5576B5
Deuteranopia (green-blind)
#466BB1
Tritanopia (blue-blind)
#008089
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4271b2;
/* rgb */ color: rgb(66, 113, 178);
/* oklch */ color: oklch(54.6% 0.114 256.9);
Tailwind
colors: {
  custom: {
    50: '#8199c9',
    500: '#4271b2',
    950: '#000000',
  },
}
SCSS
$custom: #4271b2;
$custom-light: #8199c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4271b2",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 214.821,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54601,
    "c": 0.11447,
    "h": 256.9
  },
  "luminance": 0.16183
}

Semantic roles & 50–950 ramp

primary
#4271B2
secondary
#C4AC8C
accent
#9E52D6
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #4271B2

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

Preview Lab → · Contrast checker → · Palette generator →

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