#338FB2#338FB2
#338FB2 is a mid, moderate cyan. Relative luminance 0.236; OKLCH L 61.1% C 0.100 H 227.4°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).
Color values
| HEX | #338FB2 |
|---|---|
| RGB | rgb(51, 143, 178) |
| HSL | hsl(197, 55%, 45%) |
| HSV | hsv(197, 71%, 70%) |
| CMYK | cmyk(71.3%, 19.7%, 0%, 30.2%) |
| CIE-LAB | lab(55.65, -15.34, -26.16) |
| CIE-LCH | lch(55.65, 30.32, 239.62°) |
| OKLab | oklab(61.12% -0.0675 -0.0733) |
| OKLCH | oklch(61.12% 0.1 227.4) |
| XYZ | xyz(19.2203, 23.5609, 45.6456) |
| Luminance | 0.2356 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Dirty Blue
#3F829D
ΔE00 5.01
Teal Blue
#01889F
ΔE00 6.31
Cerulean
#007BA7
ΔE00 7.96
Dusty Blue
#5A86AD
ΔE00 7.97
Steel Blue
#4682B4
ΔE00 8.33
Off Blue
#5684AE
ΔE00 8.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338FB2 #B25633
analogous
#33B295 #338FB2 #3350B2
triadic
#338FB2 #B2338F #8FB233
tetradic
#338FB2 #9533B2 #B25633 #50B233
square
#338FB2 #9533B2 #B25633 #50B233
split-complementary
#338FB2 #B23350 #B29533
monochromatic
#184353 #256982 #338FB2 #54ACCE #84C3DC
Accessibility & contrast
On white
3.68
#338FB2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.71
#338FB2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338FB2
5.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338FB2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338FB2 | 1.00 | 3.68 | 5.71 | 5.71 |
| #FFFFFF | 3.68 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7C8CB4
Deuteranopia (green-blind)
#6B80B2
Tritanopia (blue-blind)
#00999A
Achromatopsia (no color)
#858585
Design tokens & code
CSS
--color: #338fb2; /* rgb */ color: rgb(51, 143, 178); /* oklch */ color: oklch(61.1% 0.100 227.4);
Tailwind
colors: {
custom: {
50: '#7bafc9',
500: '#338fb2',
950: '#000000',
},
}SCSS
$custom: #338fb2; $custom-light: #7bafc9; $custom-dark: #000000;
JSON
{
"hex": "#338fb2",
"rgb": {
"r": 51,
"g": 143,
"b": 178
},
"hsl": {
"h": 196.535,
"s": 55.459,
"l": 44.902
},
"oklch": {
"l": 0.6112,
"c": 0.09962,
"h": 227.4
},
"luminance": 0.23563
}Semantic roles & 50–950 ramp
primary
#338FB2
secondary
#C5907C
accent
#7249DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82