#338BB2#338BB2

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

Color values

HEX#338BB2
RGBrgb(51, 139, 178)
HSLhsl(198, 55%, 45%)
HSVhsv(198, 71%, 70%)
CMYKcmyk(71.3%, 21.9%, 0%, 30.2%)
CIE-LABlab(54.43, -13.13, -28.04)
CIE-LCHlch(54.43, 30.96, 244.91°)
OKLaboklab(60.15% -0.0634 -0.0787)
OKLCHoklch(60.15% 0.101 231.2)
XYZxyz(18.6305, 22.3813, 45.4490)
Luminance0.2238 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BB2 #B25A33
analogous
#33B29A #338BB2 #334CB2
triadic
#338BB2 #B2338B #8BB233
tetradic
#338BB2 #9A33B2 #B25A33 #4CB233
square
#338BB2 #9A33B2 #B25A33 #4CB233
split-complementary
#338BB2 #B2334C #B29A33
monochromatic
#184153 #256682 #338BB2 #54A9CE #84C1DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338BB2#FFFFFF#000000##000000
##338BB21.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)
#7789B4
Deuteranopia (green-blind)
#667DB1
Tritanopia (blue-blind)
#009698
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338bb2;
/* rgb */ color: rgb(51, 139, 178);
/* oklch */ color: oklch(60.1% 0.101 231.2);
Tailwind
colors: {
  custom: {
    50: '#7bacc9',
    500: '#338bb2',
    950: '#000000',
  },
}
SCSS
$custom: #338bb2;
$custom-light: #7bacc9;
$custom-dark: #000000;
JSON
{
  "hex": "#338bb2",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 178
  },
  "hsl": {
    "h": 198.425,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.60148,
    "c": 0.10108,
    "h": 231.2
  },
  "luminance": 0.22383
}

Semantic roles & 50–950 ramp

primary
#338BB2
secondary
#C5927C
accent
#7749DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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