#338BB7#338BB7

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

Color values

HEX#338BB7
RGBrgb(51, 139, 183)
HSLhsl(200, 56%, 46%)
HSVhsv(200, 72%, 72%)
CMYKcmyk(72.1%, 24%, 0%, 28.2%)
CIE-LABlab(54.64, -11.42, -30.57)
CIE-LCHlch(54.64, 32.63, 249.52°)
OKLaboklab(60.39% -0.0616 -0.086)
OKLCHoklch(60.39% 0.106 234.4)
XYZxyz(19.1417, 22.5858, 48.1412)
Luminance0.2259 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BB7 #B75F33
analogous
#33B7A1 #338BB7 #3349B7
triadic
#338BB7 #B7338B #8BB733
tetradic
#338BB7 #A133B7 #B75F33 #49B733
square
#338BB7 #A133B7 #B75F33 #49B733
split-complementary
#338BB7 #B73349 #B7A133
monochromatic
#184257 #266787 #338BB7 #57A8D0 #87C1DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338BB7#FFFFFF#000000##000000
##338BB71.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)
#768AB9
Deuteranopia (green-blind)
#647DB6
Tritanopia (blue-blind)
#00979A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338bb7;
/* rgb */ color: rgb(51, 139, 183);
/* oklch */ color: oklch(60.4% 0.106 234.4);
Tailwind
colors: {
  custom: {
    50: '#7caccc',
    500: '#338bb7',
    950: '#000000',
  },
}
SCSS
$custom: #338bb7;
$custom-light: #7caccc;
$custom-dark: #000000;
JSON
{
  "hex": "#338bb7",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 183
  },
  "hsl": {
    "h": 200,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.60389,
    "c": 0.10578,
    "h": 234.4
  },
  "luminance": 0.22588
}

Semantic roles & 50–950 ramp

primary
#338BB7
secondary
#C7977F
accent
#7B48E0
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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