#338FB5#338FB5
#338FB5 is a mid, moderate cyan. Relative luminance 0.237; OKLCH L 61.3% C 0.102 H 229.5°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).
Color values
| HEX | #338FB5 |
|---|---|
| RGB | rgb(51, 143, 181) |
| HSL | hsl(198, 56%, 45%) |
| HSV | hsv(198, 72%, 71%) |
| CMYK | cmyk(71.8%, 21%, 0%, 29%) |
| CIE-LAB | lab(55.77, -14.33, -27.68) |
| CIE-LCH | lch(55.77, 31.17, 242.63°) |
| OKLab | oklab(61.26% -0.0664 -0.0776) |
| OKLCH | oklch(61.26% 0.102 229.5) |
| XYZ | xyz(19.5248, 23.6827, 47.2493) |
| Luminance | 0.2369 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Dirty Blue
#3F829D
ΔE00 5.38
Teal Blue
#01889F
ΔE00 7.18
Dusty Blue
#5A86AD
ΔE00 7.43
Water Blue
#0E87CC
ΔE00 7.48
Steel Blue
#4682B4
ΔE00 7.62
Cerulean
#007BA7
ΔE00 7.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338FB5 #B55933
analogous
#33B59A #338FB5 #334EB5
triadic
#338FB5 #B5338F #8FB533
tetradic
#338FB5 #9A33B5 #B55933 #4EB533
square
#338FB5 #9A33B5 #B55933 #4EB533
split-complementary
#338FB5 #B5334E #B59A33
monochromatic
#184456 #266985 #338FB5 #56ACCF #86C3DD
Accessibility & contrast
On white
3.66
#338FB5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.74
#338FB5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338FB5
5.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338FB5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338FB5 | 1.00 | 3.66 | 5.74 | 5.74 |
| #FFFFFF | 3.66 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7B8DB7
Deuteranopia (green-blind)
#6A80B4
Tritanopia (blue-blind)
#009A9C
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #338fb5; /* rgb */ color: rgb(51, 143, 181); /* oklch */ color: oklch(61.3% 0.102 229.5);
Tailwind
colors: {
custom: {
50: '#7cafcb',
500: '#338fb5',
950: '#000000',
},
}SCSS
$custom: #338fb5; $custom-light: #7cafcb; $custom-dark: #000000;
JSON
{
"hex": "#338fb5",
"rgb": {
"r": 51,
"g": 143,
"b": 181
},
"hsl": {
"h": 197.538,
"s": 56.034,
"l": 45.49
},
"oklch": {
"l": 0.61259,
"c": 0.10214,
"h": 229.5
},
"luminance": 0.23685
}Semantic roles & 50–950 ramp
primary
#338FB5
secondary
#C6937D
accent
#7548DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82