#338AB6#338AB6

#338AB6 is a mid, moderate cyan. Relative luminance 0.223; OKLCH L 60.1% C 0.105 H 234.6°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#338AB6
RGBrgb(51, 138, 182)
HSLhsl(200, 56%, 46%)
HSVhsv(200, 72%, 71%)
CMYKcmyk(72%, 24.2%, 0%, 28.6%)
CIE-LABlab(54.30, -11.20, -30.53)
CIE-LCHlch(54.30, 32.52, 249.86°)
OKLaboklab(60.1% -0.061 -0.0859)
OKLCHoklch(60.1% 0.105 234.6)
XYZxyz(18.8939, 22.2560, 47.5470)
Luminance0.2226 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AB6 #B65F33
analogous
#33B6A0 #338AB6 #3348B6
triadic
#338AB6 #B6338A #8AB633
tetradic
#338AB6 #A033B6 #B65F33 #48B633
square
#338AB6 #A033B6 #B65F33 #48B633
split-complementary
#338AB6 #B63348 #B6A033
monochromatic
#184256 #266686 #338AB6 #56A7D0 #86C0DD

Accessibility & contrast

On white

3.85
#338AB6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#338AB6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AB6
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AB6#FFFFFF#000000##000000
##338AB61.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7589B8
Deuteranopia (green-blind)
#637CB5
Tritanopia (blue-blind)
#009699
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338ab6;
/* rgb */ color: rgb(51, 138, 182);
/* oklch */ color: oklch(60.1% 0.105 234.6);
Tailwind
colors: {
  custom: {
    50: '#7caccc',
    500: '#338ab6',
    950: '#000000',
  },
}
SCSS
$custom: #338ab6;
$custom-light: #7caccc;
$custom-dark: #000000;
JSON
{
  "hex": "#338ab6",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 182
  },
  "hsl": {
    "h": 200.153,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.601,
    "c": 0.10533,
    "h": 234.6
  },
  "luminance": 0.22258
}

Semantic roles & 50–950 ramp

primary
#338AB6
secondary
#C7967E
accent
#7B48E0
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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