#338DAB#338DAB

#338DAB is a mid, moderate cyan. Relative luminance 0.227; OKLCH L 60.3% C 0.095 H 224.0°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#338DAB
RGBrgb(51, 141, 171)
HSLhsl(195, 54%, 44%)
HSVhsv(195, 70%, 67%)
CMYKcmyk(70.2%, 17.5%, 0%, 32.9%)
CIE-LABlab(54.75, -16.58, -23.53)
CIE-LCHlch(54.75, 28.78, 234.83°)
OKLaboklab(60.31% -0.0681 -0.0658)
OKLCHoklch(60.31% 0.095 224)
XYZxyz(18.2378, 22.6918, 41.9390)
Luminance0.2269 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338DAB #AB5133
analogous
#33AB8D #338DAB #3351AB
triadic
#338DAB #AB338D #8DAB33
tetradic
#338DAB #8D33AB #AB5133 #51AB33
square
#338DAB #8D33AB #AB5133 #51AB33
split-complementary
#338DAB #AB3351 #AB8D33
monochromatic
#173F4D #25667C #338DAB #50ACCB #7FC3D9

Accessibility & contrast

On white

3.79
#338DAB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#338DAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338DAB
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338DAB#FFFFFF#000000##000000
##338DAB1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C8AAD
Deuteranopia (green-blind)
#6C7EAB
Tritanopia (blue-blind)
#009697
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338dab;
/* rgb */ color: rgb(51, 141, 171);
/* oklch */ color: oklch(60.3% 0.095 224.0);
Tailwind
colors: {
  custom: {
    50: '#7aaec4',
    500: '#338dab',
    950: '#000000',
  },
}
SCSS
$custom: #338dab;
$custom-light: #7aaec4;
$custom-dark: #000000;
JSON
{
  "hex": "#338dab",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 171
  },
  "hsl": {
    "h": 195,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.60313,
    "c": 0.09467,
    "h": 224
  },
  "luminance": 0.22694
}

Semantic roles & 50–950 ramp

primary
#338DAB
secondary
#C28A78
accent
#6F4ADD
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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