#338AAB#338AAB

#338AAB is a mid, moderate cyan. Relative luminance 0.218; OKLCH L 59.6% C 0.095 H 227.1°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#338AAB
RGBrgb(51, 138, 171)
HSLhsl(197, 54%, 44%)
HSVhsv(197, 70%, 67%)
CMYKcmyk(70.2%, 19.3%, 0%, 32.9%)
CIE-LABlab(53.83, -14.94, -24.95)
CIE-LCHlch(53.83, 29.08, 239.08°)
OKLaboklab(59.58% -0.065 -0.0698)
OKLCHoklch(59.58% 0.095 227.1)
XYZxyz(17.8014, 21.8190, 41.7935)
Luminance0.2182 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AAB #AB5433
analogous
#33AB90 #338AAB #334EAB
triadic
#338AAB #AB338A #8AAB33
tetradic
#338AAB #9033AB #AB5433 #4EAB33
square
#338AAB #9033AB #AB5433 #4EAB33
split-complementary
#338AAB #AB334E #AB9033
monochromatic
#173E4D #25647C #338AAB #50A9CB #7FC0D9

Accessibility & contrast

On white

3.91
#338AAB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#338AAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AAB
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AAB#FFFFFF#000000##000000
##338AAB1.003.915.365.36
#FFFFFF3.911.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7887AD
Deuteranopia (green-blind)
#687BAB
Tritanopia (blue-blind)
#009495
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338aab;
/* rgb */ color: rgb(51, 138, 171);
/* oklch */ color: oklch(59.6% 0.095 227.1);
Tailwind
colors: {
  custom: {
    50: '#7aacc4',
    500: '#338aab',
    950: '#000000',
  },
}
SCSS
$custom: #338aab;
$custom-light: #7aacc4;
$custom-dark: #000000;
JSON
{
  "hex": "#338aab",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 171
  },
  "hsl": {
    "h": 196.5,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.59578,
    "c": 0.09539,
    "h": 227.1
  },
  "luminance": 0.21821
}

Semantic roles & 50–950 ramp

primary
#338AAB
secondary
#C28C78
accent
#734ADD
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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