#338CAB#338CAB

#338CAB is a mid, moderate cyan. Relative luminance 0.224; OKLCH L 60.1% C 0.095 H 225.0°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#338CAB
RGBrgb(51, 140, 171)
HSLhsl(196, 54%, 44%)
HSVhsv(196, 70%, 67%)
CMYKcmyk(70.2%, 18.1%, 0%, 32.9%)
CIE-LABlab(54.45, -16.04, -24.00)
CIE-LCHlch(54.45, 28.86, 236.25°)
OKLaboklab(60.07% -0.067 -0.0671)
OKLCHoklch(60.07% 0.095 225)
XYZxyz(18.0910, 22.3982, 41.8900)
Luminance0.2240 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CAB #AB5233
analogous
#33AB8E #338CAB #3350AB
triadic
#338CAB #AB338C #8CAB33
tetradic
#338CAB #8E33AB #AB5233 #50AB33
square
#338CAB #8E33AB #AB5233 #50AB33
split-complementary
#338CAB #AB3350 #AB8E33
monochromatic
#173F4D #25657C #338CAB #50ABCB #7FC2D9

Accessibility & contrast

On white

3.83
#338CAB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#338CAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CAB
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CAB#FFFFFF#000000##000000
##338CAB1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B89AD
Deuteranopia (green-blind)
#6A7DAB
Tritanopia (blue-blind)
#009596
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338cab;
/* rgb */ color: rgb(51, 140, 171);
/* oklch */ color: oklch(60.1% 0.095 225.0);
Tailwind
colors: {
  custom: {
    50: '#7aadc4',
    500: '#338cab',
    950: '#000000',
  },
}
SCSS
$custom: #338cab;
$custom-light: #7aadc4;
$custom-dark: #000000;
JSON
{
  "hex": "#338cab",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 171
  },
  "hsl": {
    "h": 195.5,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.60067,
    "c": 0.09488,
    "h": 225
  },
  "luminance": 0.224
}

Semantic roles & 50–950 ramp

primary
#338CAB
secondary
#C28B78
accent
#704ADD
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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