#338FAB#338FAB

#338FAB is a mid, moderate cyan. Relative luminance 0.233; OKLCH L 60.8% C 0.094 H 222.0°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#338FAB
RGBrgb(51, 143, 171)
HSLhsl(194, 54%, 44%)
HSVhsv(194, 70%, 67%)
CMYKcmyk(70.2%, 16.4%, 0%, 32.9%)
CIE-LABlab(55.37, -17.66, -22.59)
CIE-LCHlch(55.37, 28.67, 231.97°)
OKLaboklab(60.8% -0.0702 -0.0631)
OKLCHoklch(60.8% 0.094 222)
XYZxyz(18.5354, 23.2869, 42.0381)
Luminance0.2329 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FAB #AB4F33
analogous
#33AB8B #338FAB #3353AB
triadic
#338FAB #AB338F #8FAB33
tetradic
#338FAB #8B33AB #AB4F33 #53AB33
square
#338FAB #8B33AB #AB4F33 #53AB33
split-complementary
#338FAB #AB3353 #AB8B33
monochromatic
#17404D #25687C #338FAB #50AECB #7FC4D9

Accessibility & contrast

On white

3.71
#338FAB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#338FAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FAB
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FAB#FFFFFF#000000##000000
##338FAB1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F8BAC
Deuteranopia (green-blind)
#6E7FAB
Tritanopia (blue-blind)
#009898
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #338fab;
/* rgb */ color: rgb(51, 143, 171);
/* oklch */ color: oklch(60.8% 0.094 222.0);
Tailwind
colors: {
  custom: {
    50: '#7ab0c4',
    500: '#338fab',
    950: '#000000',
  },
}
SCSS
$custom: #338fab;
$custom-light: #7ab0c4;
$custom-dark: #000000;
JSON
{
  "hex": "#338fab",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 171
  },
  "hsl": {
    "h": 194,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.60804,
    "c": 0.09435,
    "h": 222
  },
  "luminance": 0.23289
}

Semantic roles & 50–950 ramp

primary
#338FAB
secondary
#C28978
accent
#6D4ADD
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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