#338BB3#338BB3

#338BB3 is a mid, moderate cyan. Relative luminance 0.224; OKLCH L 60.2% C 0.102 H 231.8°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#338BB3
RGBrgb(51, 139, 179)
HSLhsl(199, 56%, 45%)
HSVhsv(199, 72%, 70%)
CMYKcmyk(71.5%, 22.3%, 0%, 29.8%)
CIE-LABlab(54.47, -12.79, -28.55)
CIE-LCHlch(54.47, 31.28, 245.87°)
OKLaboklab(60.2% -0.063 -0.0802)
OKLCHoklch(60.2% 0.102 231.8)
XYZxyz(18.7313, 22.4216, 45.9797)
Luminance0.2242 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BB3 #B35B33
analogous
#33B39B #338BB3 #334BB3
triadic
#338BB3 #B3338B #8BB333
tetradic
#338BB3 #9B33B3 #B35B33 #4BB333
square
#338BB3 #9B33B3 #B35B33 #4BB333
split-complementary
#338BB3 #B3334B #B39B33
monochromatic
#184154 #256683 #338BB3 #55A8CE #84C1DC

Accessibility & contrast

On white

3.83
#338BB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#338BB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338BB3
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338BB3#FFFFFF#000000##000000
##338BB31.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7789B5
Deuteranopia (green-blind)
#667DB2
Tritanopia (blue-blind)
#009698
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338bb3;
/* rgb */ color: rgb(51, 139, 179);
/* oklch */ color: oklch(60.2% 0.102 231.8);
Tailwind
colors: {
  custom: {
    50: '#7bacca',
    500: '#338bb3',
    950: '#000000',
  },
}
SCSS
$custom: #338bb3;
$custom-light: #7bacca;
$custom-dark: #000000;
JSON
{
  "hex": "#338bb3",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 179
  },
  "hsl": {
    "h": 198.75,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.60196,
    "c": 0.10198,
    "h": 231.8
  },
  "luminance": 0.22424
}

Semantic roles & 50–950 ramp

primary
#338BB3
secondary
#C6937C
accent
#7849DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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