#338BAE#338BAE

#338BAE is a mid, moderate cyan. Relative luminance 0.222; OKLCH L 60.0% C 0.098 H 228.3°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#338BAE
RGBrgb(51, 139, 174)
HSLhsl(197, 55%, 44%)
HSVhsv(197, 71%, 68%)
CMYKcmyk(70.7%, 20.1%, 0%, 31.8%)
CIE-LABlab(54.26, -14.48, -26.01)
CIE-LCHlch(54.26, 29.77, 240.89°)
OKLaboklab(59.96% -0.0649 -0.0729)
OKLCHoklch(59.96% 0.098 228.3)
XYZxyz(18.2348, 22.2230, 43.3646)
Luminance0.2223 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BAE #AE5633
analogous
#33AE94 #338BAE #334EAE
triadic
#338BAE #AE338B #8BAE33
tetradic
#338BAE #9433AE #AE5633 #4EAE33
square
#338BAE #9433AE #AE5633 #4EAE33
split-complementary
#338BAE #AE334E #AE9433
monochromatic
#173F4F #25657F #338BAE #52A9CC #81C1DA

Accessibility & contrast

On white

3.86
#338BAE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#338BAE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338BAE
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338BAE#FFFFFF#000000##000000
##338BAE1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7989B0
Deuteranopia (green-blind)
#687CAE
Tritanopia (blue-blind)
#009597
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338bae;
/* rgb */ color: rgb(51, 139, 174);
/* oklch */ color: oklch(60.0% 0.098 228.3);
Tailwind
colors: {
  custom: {
    50: '#7aadc6',
    500: '#338bae',
    950: '#000000',
  },
}
SCSS
$custom: #338bae;
$custom-light: #7aadc6;
$custom-dark: #000000;
JSON
{
  "hex": "#338bae",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 174
  },
  "hsl": {
    "h": 197.073,
    "s": 54.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.5996,
    "c": 0.09758,
    "h": 228.3
  },
  "luminance": 0.22225
}

Semantic roles & 50–950 ramp

primary
#338BAE
secondary
#C38E79
accent
#744ADE
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #338BAE

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#338BAE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva