#338BB4#338BB4

#338BB4 is a mid, moderate cyan. Relative luminance 0.225; OKLCH L 60.2% C 0.103 H 232.5°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#338BB4
RGBrgb(51, 139, 180)
HSLhsl(199, 56%, 45%)
HSVhsv(199, 72%, 71%)
CMYKcmyk(71.7%, 22.8%, 0%, 29.4%)
CIE-LABlab(54.51, -12.45, -29.05)
CIE-LCHlch(54.51, 31.61, 246.81°)
OKLaboklab(60.24% -0.0627 -0.0816)
OKLCHoklch(60.24% 0.103 232.5)
XYZxyz(18.8328, 22.4622, 46.5143)
Luminance0.2246 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BB4 #B45C33
analogous
#33B49C #338BB4 #334AB4
triadic
#338BB4 #B4338B #8BB433
tetradic
#338BB4 #9C33B4 #B45C33 #4AB433
square
#338BB4 #9C33B4 #B45C33 #4AB433
split-complementary
#338BB4 #B4334A #B49C33
monochromatic
#184155 #256684 #338BB4 #55A8CF #85C1DC

Accessibility & contrast

On white

3.82
#338BB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#338BB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338BB4
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338BB4#FFFFFF#000000##000000
##338BB41.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7789B6
Deuteranopia (green-blind)
#657DB3
Tritanopia (blue-blind)
#009699
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338bb4;
/* rgb */ color: rgb(51, 139, 180);
/* oklch */ color: oklch(60.2% 0.103 232.5);
Tailwind
colors: {
  custom: {
    50: '#7bacca',
    500: '#338bb4',
    950: '#000000',
  },
}
SCSS
$custom: #338bb4;
$custom-light: #7bacca;
$custom-dark: #000000;
JSON
{
  "hex": "#338bb4",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 180
  },
  "hsl": {
    "h": 199.07,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.60244,
    "c": 0.10291,
    "h": 232.5
  },
  "luminance": 0.22464
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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