#1F7798#1F7798
#1F7798 is a mid, moderate cyan. Relative luminance 0.158; OKLCH L 53.4% C 0.094 H 228.4°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7798 |
|---|---|
| RGB | rgb(31, 119, 152) |
| HSL | hsl(196, 66%, 36%) |
| HSV | hsv(196, 80%, 60%) |
| CMYK | cmyk(79.6%, 21.7%, 0%, 40.4%) |
| CIE-LAB | lab(46.65, -13.55, -25.05) |
| CIE-LCH | lch(46.65, 28.48, 241.58°) |
| OKLab | oklab(53.43% -0.0626 -0.0704) |
| OKLCH | oklch(53.43% 0.094 228.4) |
| XYZ | xyz(12.8271, 15.7504, 32.0638) |
| Luminance | 0.1575 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Sea Blue
#047495
ΔE00 1.62
Cerulean
#007BA7
ΔE00 3.21
Ocean Blue (survey)
#03719C
ΔE00 3.72
Dirty Blue
#3F829D
ΔE00 4.96
Ocean
#017B92
ΔE00 4.96
Nice Blue
#107AB0
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7798 #98401F
analogous
#1F987C #1F7798 #1F3A98
triadic
#1F7798 #981F77 #77981F
tetradic
#1F7798 #7C1F98 #98401F #3A981F
square
#1F7798 #7C1F98 #98401F #3A981F
split-complementary
#1F7798 #981F3A #987C1F
monochromatic
#0A2732 #154F65 #1F7798 #299FCB #55B7DC
Accessibility & contrast
On white
5.06
#1F7798 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.15
#1F7798 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7798
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7798 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7798 | 1.00 | 5.06 | 4.15 | 5.06 |
| #FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#66759A
Deuteranopia (green-blind)
#566A98
Tritanopia (blue-blind)
#008082
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #1f7798; /* rgb */ color: rgb(31, 119, 152); /* oklch */ color: oklch(53.4% 0.094 228.4);
Tailwind
colors: {
custom: {
50: '#6f9eb6',
500: '#1f7798',
950: '#000000',
},
}SCSS
$custom: #1f7798; $custom-light: #6f9eb6; $custom-dark: #000000;
JSON
{
"hex": "#1f7798",
"rgb": {
"r": 31,
"g": 119,
"b": 152
},
"hsl": {
"h": 196.364,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.53425,
"c": 0.0942,
"h": 228.4
},
"luminance": 0.15752
}Semantic roles & 50–950 ramp
primary
#1F7798
secondary
#C07153
accent
#6D3FE9
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#080E11
muted
#7B7E80