#31789E#31789E
#31789E is a mid, moderate cyan. Relative luminance 0.166; OKLCH L 54.5% C 0.092 H 235.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #31789E |
|---|---|
| RGB | rgb(49, 120, 158) |
| HSL | hsl(201, 53%, 41%) |
| HSV | hsv(201, 69%, 62%) |
| CMYK | cmyk(69%, 24.1%, 0%, 38%) |
| CIE-LAB | lab(47.69, -9.52, -26.92) |
| CIE-LCH | lch(47.69, 28.55, 250.52°) |
| OKLab | oklab(54.48% -0.0521 -0.0756) |
| OKLCH | oklch(54.48% 0.092 235.5) |
| XYZ | xyz(14.1522, 16.5530, 34.7903) |
| Luminance | 0.1656 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Cerulean
#007BA7
ΔE00 2.53
Nice Blue
#107AB0
ΔE00 3.34
Ocean Blue (survey)
#03719C
ΔE00 3.42
Stormy Blue
#507B9C
ΔE00 4.32
Sea Blue
#047495
ΔE00 4.37
Dull Blue
#49759C
ΔE00 4.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31789E #9E5731
analogous
#319E8D #31789E #31429E
triadic
#31789E #9E3178 #789E31
tetradic
#31789E #8D319E #9E5731 #429E31
square
#31789E #8D319E #9E5731 #429E31
split-complementary
#31789E #9E3142 #9E8D31
monochromatic
#143141 #23556F #31789E #4699C6 #75B3D4
Accessibility & contrast
On white
4.87
#31789E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.31
#31789E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #31789E
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31789E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31789E | 1.00 | 4.87 | 4.31 | 4.87 |
| #FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6677A0
Deuteranopia (green-blind)
#576C9D
Tritanopia (blue-blind)
#008285
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #31789e; /* rgb */ color: rgb(49, 120, 158); /* oklch */ color: oklch(54.5% 0.092 235.5);
Tailwind
colors: {
custom: {
50: '#769eba',
500: '#31789e',
950: '#000000',
},
}SCSS
$custom: #31789e; $custom-light: #769eba; $custom-dark: #000000;
JSON
{
"hex": "#31789e",
"rgb": {
"r": 49,
"g": 120,
"b": 158
},
"hsl": {
"h": 200.917,
"s": 52.657,
"l": 40.588
},
"oklch": {
"l": 0.54481,
"c": 0.09182,
"h": 235.5
},
"luminance": 0.16555
}Semantic roles & 50–950 ramp
primary
#31789E
secondary
#BC8A6E
accent
#7E4CDC
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#090E11
muted
#7B7E80