#338CB0#338CB0

#338CB0 is a mid, moderate cyan. Relative luminance 0.226; OKLCH L 60.3% C 0.099 H 228.8°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#338CB0
RGBrgb(51, 140, 176)
HSLhsl(197, 55%, 45%)
HSVhsv(197, 71%, 69%)
CMYKcmyk(71%, 20.5%, 0%, 31%)
CIE-LABlab(54.65, -14.36, -26.55)
CIE-LCHlch(54.65, 30.19, 241.59°)
OKLaboklab(60.3% -0.0652 -0.0744)
OKLCHoklch(60.3% 0.099 228.8)
XYZxyz(18.5766, 22.5925, 44.4476)
Luminance0.2260 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CB0 #B05733
analogous
#33B096 #338CB0 #334EB0
triadic
#338CB0 #B0338C #8CB033
tetradic
#338CB0 #9633B0 #B05733 #4EB033
square
#338CB0 #9633B0 #B05733 #4EB033
split-complementary
#338CB0 #B0334E #B09633
monochromatic
#184151 #256681 #338CB0 #53AACD #82C1DB

Accessibility & contrast

On white

3.81
#338CB0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#338CB0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CB0
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CB0#FFFFFF#000000##000000
##338CB01.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#798AB2
Deuteranopia (green-blind)
#687DB0
Tritanopia (blue-blind)
#009698
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338cb0;
/* rgb */ color: rgb(51, 140, 176);
/* oklch */ color: oklch(60.3% 0.099 228.8);
Tailwind
colors: {
  custom: {
    50: '#7badc7',
    500: '#338cb0',
    950: '#000000',
  },
}
SCSS
$custom: #338cb0;
$custom-light: #7badc7;
$custom-dark: #000000;
JSON
{
  "hex": "#338cb0",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 176
  },
  "hsl": {
    "h": 197.28,
    "s": 55.066,
    "l": 44.51
  },
  "oklch": {
    "l": 0.60297,
    "c": 0.09893,
    "h": 228.8
  },
  "luminance": 0.22595
}

Semantic roles & 50–950 ramp

primary
#338CB0
secondary
#C4907B
accent
#7449DE
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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