#338BAF#338BAF
#338BAF is a mid, moderate cyan. Relative luminance 0.223; OKLCH L 60.0% C 0.098 H 229.1°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).
Color values
| HEX | #338BAF |
|---|---|
| RGB | rgb(51, 139, 175) |
| HSL | hsl(197, 55%, 44%) |
| HSV | hsv(197, 71%, 69%) |
| CMYK | cmyk(70.9%, 20.6%, 0%, 31.4%) |
| CIE-LAB | lab(54.30, -14.14, -26.52) |
| CIE-LCH | lch(54.30, 30.05, 241.92°) |
| OKLab | oklab(60.01% -0.0645 -0.0743) |
| OKLCH | oklch(60.01% 0.098 229.1) |
| XYZ | xyz(18.3326, 22.2621, 43.8800) |
| Luminance | 0.2226 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Dirty Blue
#3F829D
ΔE00 3.98
Teal Blue
#01889F
ΔE00 6.37
Cerulean
#007BA7
ΔE00 6.53
Dusty Blue
#5A86AD
ΔE00 7.17
Steel Blue
#4682B4
ΔE00 7.19
Off Blue
#5684AE
ΔE00 7.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338BAF #AF5733
analogous
#33AF95 #338BAF #334DAF
triadic
#338BAF #AF338B #8BAF33
tetradic
#338BAF #9533AF #AF5733 #4DAF33
square
#338BAF #9533AF #AF5733 #4DAF33
split-complementary
#338BAF #AF334D #AF9533
monochromatic
#174050 #256580 #338BAF #52A9CD #82C1DB
Accessibility & contrast
On white
3.85
#338BAF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.45
#338BAF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338BAF
5.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338BAF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338BAF | 1.00 | 3.85 | 5.45 | 5.45 |
| #FFFFFF | 3.85 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.45 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.45 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7889B1
Deuteranopia (green-blind)
#677CAF
Tritanopia (blue-blind)
#009597
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #338baf; /* rgb */ color: rgb(51, 139, 175); /* oklch */ color: oklch(60.0% 0.098 229.1);
Tailwind
colors: {
custom: {
50: '#7badc7',
500: '#338baf',
950: '#000000',
},
}SCSS
$custom: #338baf; $custom-light: #7badc7; $custom-dark: #000000;
JSON
{
"hex": "#338baf",
"rgb": {
"r": 51,
"g": 139,
"b": 175
},
"hsl": {
"h": 197.419,
"s": 54.867,
"l": 44.314
},
"oklch": {
"l": 0.60007,
"c": 0.09842,
"h": 229.1
},
"luminance": 0.22264
}Semantic roles & 50–950 ramp
primary
#338BAF
secondary
#C48F7A
accent
#754ADE
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1013
muted
#7C7F82