#338BAC#338BAC

#338BAC is a mid, moderate cyan. Relative luminance 0.221; OKLCH L 59.9% C 0.096 H 226.8°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#338BAC
RGBrgb(51, 139, 172)
HSLhsl(196, 54%, 44%)
HSVhsv(196, 70%, 67%)
CMYKcmyk(70.3%, 19.2%, 0%, 32.5%)
CIE-LABlab(54.18, -15.15, -24.98)
CIE-LCHlch(54.18, 29.22, 238.76°)
OKLaboklab(59.87% -0.0656 -0.0699)
OKLCHoklch(59.87% 0.096 226.8)
XYZxyz(18.0412, 22.1456, 42.3454)
Luminance0.2215 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BAC #AC5433
analogous
#33AC90 #338BAC #334EAC
triadic
#338BAC #AC338B #8BAC33
tetradic
#338BAC #9033AC #AC5433 #4EAC33
square
#338BAC #9033AC #AC5433 #4EAC33
split-complementary
#338BAC #AC334E #AC9033
monochromatic
#173F4E #25657D #338BAC #51AACB #80C1D9

Accessibility & contrast

On white

3.87
#338BAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#338BAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338BAC
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338BAC#FFFFFF#000000##000000
##338BAC1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7988AE
Deuteranopia (green-blind)
#697CAC
Tritanopia (blue-blind)
#009596
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338bac;
/* rgb */ color: rgb(51, 139, 172);
/* oklch */ color: oklch(59.9% 0.096 226.8);
Tailwind
colors: {
  custom: {
    50: '#7aadc4',
    500: '#338bac',
    950: '#000000',
  },
}
SCSS
$custom: #338bac;
$custom-light: #7aadc4;
$custom-dark: #000000;
JSON
{
  "hex": "#338bac",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 172
  },
  "hsl": {
    "h": 196.364,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.59868,
    "c": 0.09592,
    "h": 226.8
  },
  "luminance": 0.22148
}

Semantic roles & 50–950 ramp

primary
#338BAC
secondary
#C28D78
accent
#724ADE
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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