#338CB6#338CB6
#338CB6 is a mid, moderate cyan. Relative luminance 0.228; OKLCH L 60.6% C 0.104 H 232.9°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).
Color values
| HEX | #338CB6 |
|---|---|
| RGB | rgb(51, 140, 182) |
| HSL | hsl(199, 56%, 46%) |
| HSV | hsv(199, 72%, 71%) |
| CMYK | cmyk(72%, 23.1%, 0%, 28.6%) |
| CIE-LAB | lab(54.90, -12.32, -29.59) |
| CIE-LCH | lch(54.90, 32.05, 247.39°) |
| OKLab | oklab(60.58% -0.063 -0.0832) |
| OKLCH | oklch(60.58% 0.104 232.9) |
| XYZ | xyz(19.1835, 22.8352, 47.6435) |
| Luminance | 0.2284 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Dirty Blue
#3F829D
ΔE00 5.38
Water Blue
#0E87CC
ΔE00 5.69
Steel Blue
#4682B4
ΔE00 6.02
Cool Blue
#4984B8
ΔE00 6.18
Dusty Blue
#5A86AD
ΔE00 6.33
Off Blue
#5684AE
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338CB6 #B65D33
analogous
#33B69E #338CB6 #334AB6
triadic
#338CB6 #B6338C #8CB633
tetradic
#338CB6 #9E33B6 #B65D33 #4AB633
square
#338CB6 #9E33B6 #B65D33 #4AB633
split-complementary
#338CB6 #B6334A #B69E33
monochromatic
#184256 #266786 #338CB6 #56A9D0 #86C1DD
Accessibility & contrast
On white
3.77
#338CB6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.57
#338CB6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338CB6
5.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338CB6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338CB6 | 1.00 | 3.77 | 5.57 | 5.57 |
| #FFFFFF | 3.77 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.57 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.57 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#778BB8
Deuteranopia (green-blind)
#657EB5
Tritanopia (blue-blind)
#00979A
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #338cb6; /* rgb */ color: rgb(51, 140, 182); /* oklch */ color: oklch(60.6% 0.104 232.9);
Tailwind
colors: {
custom: {
50: '#7cadcc',
500: '#338cb6',
950: '#000000',
},
}SCSS
$custom: #338cb6; $custom-light: #7cadcc; $custom-dark: #000000;
JSON
{
"hex": "#338cb6",
"rgb": {
"r": 51,
"g": 140,
"b": 182
},
"hsl": {
"h": 199.237,
"s": 56.223,
"l": 45.686
},
"oklch": {
"l": 0.60581,
"c": 0.10433,
"h": 232.9
},
"luminance": 0.22837
}Semantic roles & 50–950 ramp
primary
#338CB6
secondary
#C7957E
accent
#7948E0
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82