#338AB3#338AB3
#338AB3 is a mid, moderate cyan. Relative luminance 0.221; OKLCH L 60.0% C 0.102 H 232.7°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).
Color values
| HEX | #338AB3 |
|---|---|
| RGB | rgb(51, 138, 179) |
| HSL | hsl(199, 56%, 45%) |
| HSV | hsv(199, 72%, 70%) |
| CMYK | cmyk(71.5%, 22.9%, 0%, 29.8%) |
| CIE-LAB | lab(54.17, -12.23, -29.02) |
| CIE-LCH | lch(54.17, 31.49, 247.15°) |
| OKLab | oklab(59.95% -0.062 -0.0815) |
| OKLCH | oklch(59.95% 0.102 232.7) |
| XYZ | xyz(18.5872, 22.1333, 45.9317) |
| Luminance | 0.2213 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Dirty Blue
#3F829D
ΔE00 4.77
Water Blue
#0E87CC
ΔE00 5.71
Steel Blue
#4682B4
ΔE00 5.74
Cool Blue
#4984B8
ΔE00 6.01
Cerulean
#007BA7
ΔE00 6.01
Dusty Blue
#5A86AD
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338AB3 #B35C33
analogous
#33B39C #338AB3 #334AB3
triadic
#338AB3 #B3338A #8AB333
tetradic
#338AB3 #9C33B3 #B35C33 #4AB333
square
#338AB3 #9C33B3 #B35C33 #4AB333
split-complementary
#338AB3 #B3334A #B39C33
monochromatic
#184154 #256583 #338AB3 #55A7CE #84C0DC
Accessibility & contrast
On white
3.87
#338AB3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.43
#338AB3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338AB3
5.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338AB3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338AB3 | 1.00 | 3.87 | 5.43 | 5.43 |
| #FFFFFF | 3.87 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.43 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.43 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7689B5
Deuteranopia (green-blind)
#647CB2
Tritanopia (blue-blind)
#009598
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #338ab3; /* rgb */ color: rgb(51, 138, 179); /* oklch */ color: oklch(60.0% 0.102 232.7);
Tailwind
colors: {
custom: {
50: '#7bacca',
500: '#338ab3',
950: '#000000',
},
}SCSS
$custom: #338ab3; $custom-light: #7bacca; $custom-dark: #000000;
JSON
{
"hex": "#338ab3",
"rgb": {
"r": 51,
"g": 138,
"b": 179
},
"hsl": {
"h": 199.219,
"s": 55.652,
"l": 45.098
},
"oklch": {
"l": 0.59954,
"c": 0.10245,
"h": 232.7
},
"luminance": 0.22135
}Semantic roles & 50–950 ramp
primary
#338AB3
secondary
#C6947C
accent
#7949DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82