#2F87B9#2F87B9
#2F87B9 is a mid, moderate cyan. Relative luminance 0.214; OKLCH L 59.4% C 0.112 H 238.1°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2F87B9 |
|---|---|
| RGB | rgb(47, 135, 185) |
| HSL | hsl(202, 59%, 45%) |
| HSV | hsv(202, 75%, 73%) |
| CMYK | cmyk(74.6%, 27%, 0%, 27.5%) |
| CIE-LAB | lab(53.42, -8.99, -33.62) |
| CIE-LCH | lch(53.42, 34.80, 255.03°) |
| OKLab | oklab(59.42% -0.0591 -0.0949) |
| OKLCH | oklch(59.42% 0.112 238.1) |
| XYZ | xyz(18.5898, 21.4329, 49.0468) |
| Luminance | 0.2144 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Water Blue
#0E87CC
ΔE00 3.05
Steel Blue
#4682B4
ΔE00 3.76
Cool Blue
#4984B8
ΔE00 4.04
Cerulean (survey)
#0485D1
ΔE00 4.05
Nice Blue
#107AB0
ΔE00 5.05
Off Blue
#5684AE
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F87B9 #B9612F
analogous
#2FB9A6 #2F87B9 #2F42B9
triadic
#2F87B9 #B92F87 #87B92F
tetradic
#2F87B9 #A62FB9 #B9612F #42B92F
square
#2F87B9 #A62FB9 #B9612F #42B92F
split-complementary
#2F87B9 #B92F42 #B9A62F
monochromatic
#164057 #236388 #2F87B9 #52A4D3 #83BEDF
Accessibility & contrast
On white
3.97
#2F87B9 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.29
#2F87B9 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #2F87B9
5.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F87B9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##2F87B9 | 1.00 | 3.97 | 5.29 | 5.29 |
| #FFFFFF | 3.97 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.29 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.29 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6F87BB
Deuteranopia (green-blind)
#5D7AB8
Tritanopia (blue-blind)
#009498
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #2f87b9; /* rgb */ color: rgb(47, 135, 185); /* oklch */ color: oklch(59.4% 0.112 238.1);
Tailwind
colors: {
custom: {
50: '#7ba9ce',
500: '#2f87b9',
950: '#000000',
},
}SCSS
$custom: #2f87b9; $custom-light: #7ba9ce; $custom-dark: #000000;
JSON
{
"hex": "#2f87b9",
"rgb": {
"r": 47,
"g": 135,
"b": 185
},
"hsl": {
"h": 201.739,
"s": 59.483,
"l": 45.49
},
"oklch": {
"l": 0.59416,
"c": 0.11179,
"h": 238.1
},
"luminance": 0.21435
}Semantic roles & 50–950 ramp
primary
#2F87B9
secondary
#C9977B
accent
#7E45E3
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1013
muted
#7C7F82