#4271A7#4271A7

#4271A7 is a mid, moderate cyan. Relative luminance 0.158; OKLCH L 54.0% C 0.100 H 253.1°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#4271A7
RGBrgb(66, 113, 167)
HSLhsl(212, 43%, 46%)
HSVhsv(212, 60%, 65%)
CMYKcmyk(60.5%, 32.3%, 0%, 34.5%)
CIE-LABlab(46.65, 0.88, -33.76)
CIE-LCHlch(46.65, 33.77, 271.50°)
OKLaboklab(53.98% -0.029 -0.0953)
OKLCHoklch(53.98% 0.1 253.1)
XYZxyz(15.1244, 15.7572, 38.7961)
Luminance0.1576 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271A7 #A77842
analogous
#42A3A7 #4271A7 #4542A7
triadic
#4271A7 #A74271 #71A742
tetradic
#4271A7 #A742A3 #A77842 #42A745
square
#4271A7 #A742A3 #A77842 #42A745
split-complementary
#4271A7 #A74542 #A3A742
monochromatic
#1F364F #31537B #4271A7 #6490C2 #90AFD3

Accessibility & contrast

On white

5.06
#4271A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#4271A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4271A7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271A7#FFFFFF#000000##FFFFFF
##4271A71.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A74A9
Deuteranopia (green-blind)
#4D6AA6
Tritanopia (blue-blind)
#007D84
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4271a7;
/* rgb */ color: rgb(66, 113, 167);
/* oklch */ color: oklch(54.0% 0.100 253.1);
Tailwind
colors: {
  custom: {
    50: '#7f99c1',
    500: '#4271a7',
    950: '#000000',
  },
}
SCSS
$custom: #4271a7;
$custom-light: #7f99c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4271a7",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 167
  },
  "hsl": {
    "h": 212.079,
    "s": 43.348,
    "l": 45.686
  },
  "oklch": {
    "l": 0.53983,
    "c": 0.09964,
    "h": 253.1
  },
  "luminance": 0.15759
}

Semantic roles & 50–950 ramp

primary
#4271A7
secondary
#BEA486
accent
#9855D3
background
#F8F9FB
surface
#EFF2F7
border
#CACCD0
text
#0B0D12
muted
#7C7E81

Preview Lab

Preview with #4271A7

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

Preview Lab → · Contrast checker → · Palette generator →

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