#338ABC#338ABC

#338ABC is a mid, moderate cyan. Relative luminance 0.225; OKLCH L 60.4% C 0.111 H 238.1°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#338ABC
RGBrgb(51, 138, 188)
HSLhsl(202, 57%, 47%)
HSVhsv(202, 73%, 74%)
CMYKcmyk(72.9%, 26.6%, 0%, 26.3%)
CIE-LABlab(54.56, -9.12, -33.54)
CIE-LCHlch(54.56, 34.76, 254.79°)
OKLaboklab(60.4% -0.0589 -0.0946)
OKLCHoklch(60.4% 0.111 238.1)
XYZxyz(19.5273, 22.5094, 50.8828)
Luminance0.2251 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338ABC #BC6533
analogous
#33BCAA #338ABC #3346BC
triadic
#338ABC #BC338A #8ABC33
tetradic
#338ABC #AA33BC #BC6533 #46BC33
square
#338ABC #AA33BC #BC6533 #46BC33
split-complementary
#338ABC #BC3346 #BCAA33
monochromatic
#19435C #26678C #338ABC #5AA6D2 #8AC0DF

Accessibility & contrast

On white

3.82
#338ABC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#338ABC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338ABC
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338ABC#FFFFFF#000000##000000
##338ABC1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#728ABE
Deuteranopia (green-blind)
#607DBB
Tritanopia (blue-blind)
#00979B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338abc;
/* rgb */ color: rgb(51, 138, 188);
/* oklch */ color: oklch(60.4% 0.111 238.1);
Tailwind
colors: {
  custom: {
    50: '#7dacd0',
    500: '#338abc',
    950: '#000000',
  },
}
SCSS
$custom: #338abc;
$custom-light: #7dacd0;
$custom-dark: #000000;
JSON
{
  "hex": "#338abc",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 188
  },
  "hsl": {
    "h": 201.898,
    "s": 57.322,
    "l": 46.863
  },
  "oklch": {
    "l": 0.60399,
    "c": 0.11145,
    "h": 238.1
  },
  "luminance": 0.22512
}

Semantic roles & 50–950 ramp

primary
#338ABC
secondary
#C99C81
accent
#7F47E1
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1014
muted
#7C7F82

Preview Lab

Preview with #338ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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