#4271D8#4271D8
#4271D8 is a mid, vivid blue. Relative luminance 0.179; OKLCH L 57.0% C 0.166 H 263.6°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #4271D8 |
|---|---|
| RGB | rgb(66, 113, 216) |
| HSL | hsl(221, 66%, 55%) |
| HSV | hsv(221, 69%, 85%) |
| CMYK | cmyk(69.4%, 47.7%, 0%, 15.3%) |
| CIE-LAB | lab(49.40, 18.14, -57.62) |
| CIE-LCH | lch(49.40, 60.41, 287.48°) |
| OKLab | oklab(57% -0.0186 -0.1652) |
| OKLCH | oklch(57% 0.166 263.6) |
| XYZ | xyz(20.5422, 17.9243, 67.3296) |
| Luminance | 0.1793 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower Blue
#5170D7
ΔE00 2.30
Royal Blue
#4169E1
ΔE00 3.17
Cerulean Blue
#056EEE
ΔE00 3.18
Deep Sky Blue
#0D75F8
ΔE00 4.14
Bright Blue
#0165FC
ΔE00 5.29
Clear Blue
#247AFD
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4271D8 #D8A942
analogous
#42BCD8 #4271D8 #5E42D8
triadic
#4271D8 #D84271 #71D842
tetradic
#4271D8 #D842BC #D8A942 #42D85E
square
#4271D8 #D842BC #D8A942 #42D85E
split-complementary
#4271D8 #D85E42 #BCD842
monochromatic
#1B3C84 #2653B7 #4271D8 #7597E2 #A7BDED
Accessibility & contrast
On white
4.58
#4271D8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.59
#4271D8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #4271D8
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4271D8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##4271D8 | 1.00 | 4.58 | 4.59 | 4.59 |
| #FFFFFF | 4.58 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#397DDC
Deuteranopia (green-blind)
#116FD6
Tritanopia (blue-blind)
#00899A
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #4271d8; /* rgb */ color: rgb(66, 113, 216); /* oklch */ color: oklch(57.0% 0.166 263.6);
Tailwind
colors: {
custom: {
50: '#8799e5',
500: '#4271d8',
950: '#000000',
},
}SCSS
$custom: #4271d8; $custom-light: #8799e5; $custom-dark: #000000;
JSON
{
"hex": "#4271d8",
"rgb": {
"r": 66,
"g": 113,
"b": 216
},
"hsl": {
"h": 221.2,
"s": 65.789,
"l": 55.294
},
"oklch": {
"l": 0.57003,
"c": 0.16629,
"h": 263.6
},
"luminance": 0.17926
}Semantic roles & 50–950 ramp
primary
#4271D8
secondary
#DAC79C
accent
#B43FE9
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0D16
muted
#7E7E84