#338CB2#338CB2

#338CB2 is a mid, moderate cyan. Relative luminance 0.227; OKLCH L 60.4% C 0.101 H 230.2°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#338CB2
RGBrgb(51, 140, 178)
HSLhsl(198, 55%, 45%)
HSVhsv(198, 71%, 70%)
CMYKcmyk(71.3%, 21.3%, 0%, 30.2%)
CIE-LABlab(54.73, -13.68, -27.57)
CIE-LCHlch(54.73, 30.78, 243.60°)
OKLaboklab(60.39% -0.0644 -0.0774)
OKLCHoklch(60.39% 0.101 230.2)
XYZxyz(18.7760, 22.6722, 45.4975)
Luminance0.2267 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CB2 #B25933
analogous
#33B299 #338CB2 #334CB2
triadic
#338CB2 #B2338C #8CB233
tetradic
#338CB2 #9933B2 #B25933 #4CB233
square
#338CB2 #9933B2 #B25933 #4CB233
split-complementary
#338CB2 #B2334C #B29933
monochromatic
#184153 #256782 #338CB2 #54AACE #84C1DC

Accessibility & contrast

On white

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

On black

5.53
#338CB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CB2
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CB2#FFFFFF#000000##000000
##338CB21.003.795.535.53
#FFFFFF3.791.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#798AB4
Deuteranopia (green-blind)
#677DB1
Tritanopia (blue-blind)
#009699
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338cb2;
/* rgb */ color: rgb(51, 140, 178);
/* oklch */ color: oklch(60.4% 0.101 230.2);
Tailwind
colors: {
  custom: {
    50: '#7badc9',
    500: '#338cb2',
    950: '#000000',
  },
}
SCSS
$custom: #338cb2;
$custom-light: #7badc9;
$custom-dark: #000000;
JSON
{
  "hex": "#338cb2",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 178
  },
  "hsl": {
    "h": 197.953,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.60391,
    "c": 0.10066,
    "h": 230.2
  },
  "luminance": 0.22674
}

Semantic roles & 50–950 ramp

primary
#338CB2
secondary
#C5927C
accent
#7649DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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