#338DB8#338DB8

#338DB8 is a mid, moderate cyan. Relative luminance 0.232; OKLCH L 60.9% C 0.106 H 233.3°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#338DB8
RGBrgb(51, 141, 184)
HSLhsl(199, 57%, 46%)
HSVhsv(199, 72%, 72%)
CMYKcmyk(72.3%, 23.4%, 0%, 27.8%)
CIE-LABlab(55.29, -12.20, -30.13)
CIE-LCHlch(55.29, 32.50, 247.96°)
OKLaboklab(60.92% -0.0633 -0.0847)
OKLCHoklch(60.92% 0.106 233.3)
XYZxyz(19.5384, 23.2120, 48.7887)
Luminance0.2321 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338DB8 #B85E33
analogous
#33B8A0 #338DB8 #334BB8
triadic
#338DB8 #B8338D #8DB833
tetradic
#338DB8 #A033B8 #B85E33 #4BB833
square
#338DB8 #A033B8 #B85E33 #4BB833
split-complementary
#338DB8 #B8334B #B8A033
monochromatic
#184458 #266888 #338DB8 #58A9D1 #88C2DE

Accessibility & contrast

On white

3.72
#338DB8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#338DB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338DB8
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338DB8#FFFFFF#000000##000000
##338DB81.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#788CBA
Deuteranopia (green-blind)
#667FB7
Tritanopia (blue-blind)
#00989B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338db8;
/* rgb */ color: rgb(51, 141, 184);
/* oklch */ color: oklch(60.9% 0.106 233.3);
Tailwind
colors: {
  custom: {
    50: '#7caecd',
    500: '#338db8',
    950: '#000000',
  },
}
SCSS
$custom: #338db8;
$custom-light: #7caecd;
$custom-dark: #000000;
JSON
{
  "hex": "#338db8",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 184
  },
  "hsl": {
    "h": 199.398,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.60919,
    "c": 0.10573,
    "h": 233.3
  },
  "luminance": 0.23214
}

Semantic roles & 50–950 ramp

primary
#338DB8
secondary
#C8977F
accent
#7948E0
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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