#338AB4#338AB4

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

Color values

HEX#338AB4
RGBrgb(51, 138, 180)
HSLhsl(200, 56%, 45%)
HSVhsv(200, 72%, 71%)
CMYKcmyk(71.7%, 23.3%, 0%, 29.4%)
CIE-LABlab(54.21, -11.89, -29.52)
CIE-LCHlch(54.21, 31.83, 248.07°)
OKLaboklab(60% -0.0617 -0.083)
OKLCHoklch(60% 0.103 233.4)
XYZxyz(18.6887, 22.1739, 46.4662)
Luminance0.2218 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AB4 #B45D33
analogous
#33B49D #338AB4 #3349B4
triadic
#338AB4 #B4338A #8AB433
tetradic
#338AB4 #9D33B4 #B45D33 #49B433
square
#338AB4 #9D33B4 #B45D33 #49B433
split-complementary
#338AB4 #B43349 #B49D33
monochromatic
#184155 #256584 #338AB4 #55A7CF #85C0DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338AB4#FFFFFF#000000##000000
##338AB41.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)
#7589B6
Deuteranopia (green-blind)
#647CB3
Tritanopia (blue-blind)
#009598
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338ab4;
/* rgb */ color: rgb(51, 138, 180);
/* oklch */ color: oklch(60.0% 0.103 233.4);
Tailwind
colors: {
  custom: {
    50: '#7bacca',
    500: '#338ab4',
    950: '#000000',
  },
}
SCSS
$custom: #338ab4;
$custom-light: #7bacca;
$custom-dark: #000000;
JSON
{
  "hex": "#338ab4",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 180
  },
  "hsl": {
    "h": 199.535,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.60002,
    "c": 0.10339,
    "h": 233.4
  },
  "luminance": 0.22176
}

Semantic roles & 50–950 ramp

primary
#338AB4
secondary
#C6957D
accent
#7A49DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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