#338FBA#338FBA
#338FBA is a mid, moderate cyan. Relative luminance 0.239; OKLCH L 61.5% C 0.107 H 232.8°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).
Color values
| HEX | #338FBA |
|---|---|
| RGB | rgb(51, 143, 186) |
| HSL | hsl(199, 57%, 46%) |
| HSV | hsv(199, 73%, 73%) |
| CMYK | cmyk(72.6%, 23.1%, 0%, 27.1%) |
| CIE-LAB | lab(55.98, -12.63, -30.20) |
| CIE-LCH | lch(55.98, 32.73, 247.31°) |
| OKLab | oklab(61.5% -0.0645 -0.0849) |
| OKLCH | oklch(61.5% 0.107 232.8) |
| XYZ | xyz(20.0471, 23.8916, 49.9999) |
| Luminance | 0.2389 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Water Blue
#0E87CC
ΔE00 5.97
Dirty Blue
#3F829D
ΔE00 6.23
Steel Blue
#4682B4
ΔE00 6.64
Cool Blue
#4984B8
ΔE00 6.67
Dusty Blue
#5A86AD
ΔE00 6.75
Off Blue
#5684AE
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338FBA #BA5E33
analogous
#33BAA2 #338FBA #334CBA
triadic
#338FBA #BA338F #8FBA33
tetradic
#338FBA #A233BA #BA5E33 #4CBA33
square
#338FBA #A233BA #BA5E33 #4CBA33
split-complementary
#338FBA #BA334C #BAA233
monochromatic
#19455A #266A8A #338FBA #59ABD1 #89C3DF
Accessibility & contrast
On white
3.63
#338FBA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.78
#338FBA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338FBA
5.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338FBA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338FBA | 1.00 | 3.63 | 5.78 | 5.78 |
| #FFFFFF | 3.63 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7A8EBC
Deuteranopia (green-blind)
#6780B9
Tritanopia (blue-blind)
#009B9D
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #338fba; /* rgb */ color: rgb(51, 143, 186); /* oklch */ color: oklch(61.5% 0.107 232.8);
Tailwind
colors: {
custom: {
50: '#7cafcf',
500: '#338fba',
950: '#000000',
},
}SCSS
$custom: #338fba; $custom-light: #7cafcf; $custom-dark: #000000;
JSON
{
"hex": "#338fba",
"rgb": {
"r": 51,
"g": 143,
"b": 186
},
"hsl": {
"h": 199.111,
"s": 56.962,
"l": 46.471
},
"oklch": {
"l": 0.61496,
"c": 0.10665,
"h": 232.8
},
"luminance": 0.23894
}Semantic roles & 50–950 ramp
primary
#338FBA
secondary
#C99780
accent
#7848E0
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1013
muted
#7C7F82