#338AB2#338AB2
#338AB2 is a mid, moderate cyan. Relative luminance 0.221; OKLCH L 59.9% C 0.102 H 232.1°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #338AB2 |
|---|---|
| RGB | rgb(51, 138, 178) |
| HSL | hsl(199, 55%, 45%) |
| HSV | hsv(199, 71%, 70%) |
| CMYK | cmyk(71.3%, 22.5%, 0%, 30.2%) |
| CIE-LAB | lab(54.13, -12.57, -28.51) |
| CIE-LCH | lch(54.13, 31.16, 246.21°) |
| OKLab | oklab(59.91% -0.0624 -0.0801) |
| OKLCH | oklch(59.91% 0.102 232.1) |
| XYZ | xyz(18.4864, 22.0930, 45.4009) |
| Luminance | 0.2210 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Dirty Blue
#3F829D
ΔE00 4.55
Steel Blue
#4682B4
ΔE00 5.97
Cerulean
#007BA7
ΔE00 6.01
Water Blue
#0E87CC
ΔE00 6.03
Cool Blue
#4984B8
ΔE00 6.25
Dusty Blue
#5A86AD
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338AB2 #B25B33
analogous
#33B29B #338AB2 #334AB2
triadic
#338AB2 #B2338A #8AB233
tetradic
#338AB2 #9B33B2 #B25B33 #4AB233
square
#338AB2 #9B33B2 #B25B33 #4AB233
split-complementary
#338AB2 #B2334A #B29B33
monochromatic
#184053 #256582 #338AB2 #54A8CE #84C0DC
Accessibility & contrast
On white
3.88
#338AB2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.42
#338AB2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338AB2
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338AB2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338AB2 | 1.00 | 3.88 | 5.42 | 5.42 |
| #FFFFFF | 3.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.42 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.42 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7688B4
Deuteranopia (green-blind)
#657CB1
Tritanopia (blue-blind)
#009597
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #338ab2; /* rgb */ color: rgb(51, 138, 178); /* oklch */ color: oklch(59.9% 0.102 232.1);
Tailwind
colors: {
custom: {
50: '#7bacc9',
500: '#338ab2',
950: '#000000',
},
}SCSS
$custom: #338ab2; $custom-light: #7bacc9; $custom-dark: #000000;
JSON
{
"hex": "#338ab2",
"rgb": {
"r": 51,
"g": 138,
"b": 178
},
"hsl": {
"h": 198.898,
"s": 55.459,
"l": 44.902
},
"oklch": {
"l": 0.59906,
"c": 0.10151,
"h": 232.1
},
"luminance": 0.22095
}Semantic roles & 50–950 ramp
primary
#338AB2
secondary
#C5937C
accent
#7849DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82