#338BA4#338BA4

#338BA4 is a mid, moderate cyan. Relative luminance 0.218; OKLCH L 59.5% C 0.090 H 220.3°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#338BA4
RGBrgb(51, 139, 164)
HSLhsl(193, 53%, 42%)
HSVhsv(193, 69%, 64%)
CMYKcmyk(68.9%, 15.2%, 0%, 35.7%)
CIE-LABlab(53.86, -17.80, -20.87)
CIE-LCHlch(53.86, 27.43, 229.54°)
OKLaboklab(59.51% -0.0688 -0.0582)
OKLCHoklch(59.51% 0.09 220.3)
XYZxyz(17.2959, 21.8475, 38.4202)
Luminance0.2185 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BA4 #A44C33
analogous
#33A484 #338BA4 #3353A4
triadic
#338BA4 #A4338B #8BA433
tetradic
#338BA4 #8433A4 #A44C33 #53A433
square
#338BA4 #8433A4 #A44C33 #53A433
split-complementary
#338BA4 #A43353 #A48433
monochromatic
#163C47 #246375 #338BA4 #4DACC8 #7BC2D6

Accessibility & contrast

On white

3.91
#338BA4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#338BA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338BA4
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338BA4#FFFFFF#000000##000000
##338BA41.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C87A5
Deuteranopia (green-blind)
#6C7CA4
Tritanopia (blue-blind)
#009393
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338ba4;
/* rgb */ color: rgb(51, 139, 164);
/* oklch */ color: oklch(59.5% 0.090 220.3);
Tailwind
colors: {
  custom: {
    50: '#79adbf',
    500: '#338ba4',
    950: '#000000',
  },
}
SCSS
$custom: #338ba4;
$custom-light: #79adbf;
$custom-dark: #000000;
JSON
{
  "hex": "#338ba4",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 164
  },
  "hsl": {
    "h": 193.274,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.5951,
    "c": 0.0901,
    "h": 220.3
  },
  "luminance": 0.21849
}

Semantic roles & 50–950 ramp

primary
#338BA4
secondary
#BF8574
accent
#6C4CDC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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