#338AB1#338AB1
#338AB1 is a mid, moderate cyan. Relative luminance 0.221; OKLCH L 59.9% C 0.101 H 231.4°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).
Color values
| HEX | #338AB1 |
|---|---|
| RGB | rgb(51, 138, 177) |
| HSL | hsl(199, 55%, 45%) |
| HSV | hsv(199, 71%, 69%) |
| CMYK | cmyk(71.2%, 22%, 0%, 30.6%) |
| CIE-LAB | lab(54.08, -12.91, -28.00) |
| CIE-LCH | lch(54.08, 30.84, 245.25°) |
| OKLab | oklab(59.86% -0.0627 -0.0786) |
| OKLCH | oklch(59.86% 0.101 231.4) |
| XYZ | xyz(18.3864, 22.0530, 44.8741) |
| Luminance | 0.2205 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Dirty Blue
#3F829D
ΔE00 4.32
Cerulean
#007BA7
ΔE00 6.02
Steel Blue
#4682B4
ΔE00 6.21
Water Blue
#0E87CC
ΔE00 6.36
Dusty Blue
#5A86AD
ΔE00 6.49
Cool Blue
#4984B8
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338AB1 #B15A33
analogous
#33B199 #338AB1 #334BB1
triadic
#338AB1 #B1338A #8AB133
tetradic
#338AB1 #9933B1 #B15A33 #4BB133
square
#338AB1 #9933B1 #B15A33 #4BB133
split-complementary
#338AB1 #B1334B #B19933
monochromatic
#184052 #256581 #338AB1 #54A8CE #83C0DB
Accessibility & contrast
On white
3.88
#338AB1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.41
#338AB1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338AB1
5.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338AB1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338AB1 | 1.00 | 3.88 | 5.41 | 5.41 |
| #FFFFFF | 3.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.41 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.41 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7688B3
Deuteranopia (green-blind)
#657CB0
Tritanopia (blue-blind)
#009597
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #338ab1; /* rgb */ color: rgb(51, 138, 177); /* oklch */ color: oklch(59.9% 0.101 231.4);
Tailwind
colors: {
custom: {
50: '#7bacc8',
500: '#338ab1',
950: '#000000',
},
}SCSS
$custom: #338ab1; $custom-light: #7bacc8; $custom-dark: #000000;
JSON
{
"hex": "#338ab1",
"rgb": {
"r": 51,
"g": 138,
"b": 177
},
"hsl": {
"h": 198.571,
"s": 55.263,
"l": 44.706
},
"oklch": {
"l": 0.59858,
"c": 0.10059,
"h": 231.4
},
"luminance": 0.22055
}Semantic roles & 50–950 ramp
primary
#338AB1
secondary
#C5927B
accent
#7749DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82