#338BBF#338BBF

#338BBF is a mid, moderate cyan. Relative luminance 0.229; OKLCH L 60.8% C 0.114 H 238.9°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#338BBF
RGBrgb(51, 139, 191)
HSLhsl(202, 58%, 47%)
HSVhsv(202, 73%, 75%)
CMYKcmyk(73.3%, 27.2%, 0%, 25.1%)
CIE-LABlab(55.00, -8.64, -34.57)
CIE-LCHlch(55.00, 35.63, 255.96°)
OKLaboklab(60.79% -0.0589 -0.0976)
OKLCHoklch(60.79% 0.114 238.9)
XYZxyz(19.9981, 22.9283, 52.6518)
Luminance0.2293 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BBF #BF6733
analogous
#33BFAD #338BBF #3345BF
triadic
#338BBF #BF338B #8BBF33
tetradic
#338BBF #AD33BF #BF6733 #45BF33
square
#338BBF #AD33BF #BF6733 #45BF33
split-complementary
#338BBF #BF3345 #BFAD33
monochromatic
#19455E #26688F #338BBF #5CA7D3 #8CC1E0

Accessibility & contrast

On white

3.76
#338BBF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#338BBF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338BBF
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338BBF#FFFFFF#000000##000000
##338BBF1.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#738BC1
Deuteranopia (green-blind)
#5F7EBE
Tritanopia (blue-blind)
#00989D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338bbf;
/* rgb */ color: rgb(51, 139, 191);
/* oklch */ color: oklch(60.8% 0.114 238.9);
Tailwind
colors: {
  custom: {
    50: '#7dacd2',
    500: '#338bbf',
    950: '#000000',
  },
}
SCSS
$custom: #338bbf;
$custom-light: #7dacd2;
$custom-dark: #000000;
JSON
{
  "hex": "#338bbf",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 191
  },
  "hsl": {
    "h": 202.286,
    "s": 57.851,
    "l": 47.451
  },
  "oklch": {
    "l": 0.60789,
    "c": 0.11397,
    "h": 238.9
  },
  "luminance": 0.22931
}

Semantic roles & 50–950 ramp

primary
#338BBF
secondary
#CB9E83
accent
#8047E1
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1014
muted
#7C7F82

Preview Lab

Preview with #338BBF

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

Preview Lab → · Contrast checker → · Palette generator →

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