#338EB7#338EB7
#338EB7 is a mid, moderate cyan. Relative luminance 0.235; OKLCH L 61.1% C 0.104 H 231.7°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).
Color values
| HEX | #338EB7 |
|---|---|
| RGB | rgb(51, 142, 183) |
| HSL | hsl(199, 56%, 46%) |
| HSV | hsv(199, 72%, 72%) |
| CMYK | cmyk(72.1%, 22.4%, 0%, 28.2%) |
| CIE-LAB | lab(55.55, -13.09, -29.16) |
| CIE-LCH | lch(55.55, 31.96, 245.82°) |
| OKLab | oklab(61.11% -0.0646 -0.0819) |
| OKLCH | oklch(61.11% 0.104 231.7) |
| XYZ | xyz(19.5821, 23.4665, 48.2880) |
| Luminance | 0.2347 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Dirty Blue
#3F829D
ΔE00 5.62
Water Blue
#0E87CC
ΔE00 6.35
Steel Blue
#4682B4
ΔE00 6.74
Dusty Blue
#5A86AD
ΔE00 6.80
Cool Blue
#4984B8
ΔE00 6.84
Off Blue
#5684AE
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338EB7 #B75C33
analogous
#33B79E #338EB7 #334CB7
triadic
#338EB7 #B7338E #8EB733
tetradic
#338EB7 #9E33B7 #B75C33 #4CB733
square
#338EB7 #9E33B7 #B75C33 #4CB733
split-complementary
#338EB7 #B7334C #B79E33
monochromatic
#184457 #266987 #338EB7 #57ABD0 #87C3DE
Accessibility & contrast
On white
3.69
#338EB7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.69
#338EB7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338EB7
5.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338EB7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338EB7 | 1.00 | 3.69 | 5.69 | 5.69 |
| #FFFFFF | 3.69 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.69 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.69 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#798CB9
Deuteranopia (green-blind)
#677FB6
Tritanopia (blue-blind)
#00999C
Achromatopsia (no color)
#858585
Design tokens & code
CSS
--color: #338eb7; /* rgb */ color: rgb(51, 142, 183); /* oklch */ color: oklch(61.1% 0.104 231.7);
Tailwind
colors: {
custom: {
50: '#7cafcc',
500: '#338eb7',
950: '#000000',
},
}SCSS
$custom: #338eb7; $custom-light: #7cafcc; $custom-dark: #000000;
JSON
{
"hex": "#338eb7",
"rgb": {
"r": 51,
"g": 142,
"b": 183
},
"hsl": {
"h": 198.636,
"s": 56.41,
"l": 45.882
},
"oklch": {
"l": 0.61112,
"c": 0.10433,
"h": 231.7
},
"luminance": 0.23469
}Semantic roles & 50–950 ramp
primary
#338EB7
secondary
#C7957F
accent
#7748E0
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1013
muted
#7C7F82