#338BAB#338BAB

#338BAB is a mid, moderate cyan. Relative luminance 0.221; OKLCH L 59.8% C 0.095 H 226.1°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#338BAB
RGBrgb(51, 139, 171)
HSLhsl(196, 54%, 44%)
HSVhsv(196, 70%, 67%)
CMYKcmyk(70.2%, 18.7%, 0%, 32.9%)
CIE-LABlab(54.14, -15.49, -24.47)
CIE-LCHlch(54.14, 28.96, 237.67°)
OKLaboklab(59.82% -0.066 -0.0685)
OKLCHoklch(59.82% 0.095 226.1)
XYZxyz(17.9456, 22.1073, 41.8415)
Luminance0.2211 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BAB #AB5333
analogous
#33AB8F #338BAB #334FAB
triadic
#338BAB #AB338B #8BAB33
tetradic
#338BAB #8F33AB #AB5333 #4FAB33
square
#338BAB #8F33AB #AB5333 #4FAB33
split-complementary
#338BAB #AB334F #AB8F33
monochromatic
#173E4D #25657C #338BAB #50AACB #7FC1D9

Accessibility & contrast

On white

3.87
#338BAB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#338BAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338BAB
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338BAB#FFFFFF#000000##000000
##338BAB1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A88AD
Deuteranopia (green-blind)
#697CAB
Tritanopia (blue-blind)
#009495
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338bab;
/* rgb */ color: rgb(51, 139, 171);
/* oklch */ color: oklch(59.8% 0.095 226.1);
Tailwind
colors: {
  custom: {
    50: '#7aadc4',
    500: '#338bab',
    950: '#000000',
  },
}
SCSS
$custom: #338bab;
$custom-light: #7aadc4;
$custom-dark: #000000;
JSON
{
  "hex": "#338bab",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 171
  },
  "hsl": {
    "h": 196,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.59822,
    "c": 0.09512,
    "h": 226.1
  },
  "luminance": 0.22109
}

Semantic roles & 50–950 ramp

primary
#338BAB
secondary
#C28C78
accent
#724ADD
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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