#338EB8#338EB8

#338EB8 is a mid, moderate cyan. Relative luminance 0.235; OKLCH L 61.2% C 0.105 H 232.4°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#338EB8
RGBrgb(51, 142, 184)
HSLhsl(199, 57%, 46%)
HSVhsv(199, 72%, 72%)
CMYKcmyk(72.3%, 22.8%, 0%, 27.8%)
CIE-LABlab(55.59, -12.75, -29.66)
CIE-LCHlch(55.59, 32.29, 246.73°)
OKLaboklab(61.16% -0.0643 -0.0834)
OKLCHoklch(61.16% 0.105 232.4)
XYZxyz(19.6865, 23.5083, 48.8381)
Luminance0.2351 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EB8 #B85D33
analogous
#33B89F #338EB8 #334BB8
triadic
#338EB8 #B8338E #8EB833
tetradic
#338EB8 #9F33B8 #B85D33 #4BB833
square
#338EB8 #9F33B8 #B85D33 #4BB833
split-complementary
#338EB8 #B8334B #B89F33
monochromatic
#184458 #266988 #338EB8 #58AAD1 #88C3DE

Accessibility & contrast

On white

3.68
#338EB8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#338EB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EB8
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EB8#FFFFFF#000000##000000
##338EB81.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#798CBA
Deuteranopia (green-blind)
#677FB7
Tritanopia (blue-blind)
#00999C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #338eb8;
/* rgb */ color: rgb(51, 142, 184);
/* oklch */ color: oklch(61.2% 0.105 232.4);
Tailwind
colors: {
  custom: {
    50: '#7cafcd',
    500: '#338eb8',
    950: '#000000',
  },
}
SCSS
$custom: #338eb8;
$custom-light: #7cafcd;
$custom-dark: #000000;
JSON
{
  "hex": "#338eb8",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 184
  },
  "hsl": {
    "h": 198.947,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.61159,
    "c": 0.10525,
    "h": 232.4
  },
  "luminance": 0.23511
}

Semantic roles & 50–950 ramp

primary
#338EB8
secondary
#C8967F
accent
#7848E0
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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