#338DB3#338DB3

#338DB3 is a mid, moderate cyan. Relative luminance 0.230; OKLCH L 60.7% C 0.101 H 230.0°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#338DB3
RGBrgb(51, 141, 179)
HSLhsl(198, 56%, 45%)
HSVhsv(198, 72%, 70%)
CMYKcmyk(71.5%, 21.2%, 0%, 29.8%)
CIE-LABlab(55.08, -13.90, -27.61)
CIE-LCHlch(55.08, 30.91, 243.27°)
OKLaboklab(60.68% -0.0651 -0.0775)
OKLCHoklch(60.68% 0.101 230)
XYZxyz(19.0235, 23.0061, 46.0771)
Luminance0.2301 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338DB3 #B35933
analogous
#33B399 #338DB3 #334DB3
triadic
#338DB3 #B3338D #8DB333
tetradic
#338DB3 #9933B3 #B35933 #4DB333
square
#338DB3 #9933B3 #B35933 #4DB333
split-complementary
#338DB3 #B3334D #B39933
monochromatic
#184254 #256783 #338DB3 #55AACE #84C2DC

Accessibility & contrast

On white

3.75
#338DB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#338DB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338DB3
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338DB3#FFFFFF#000000##000000
##338DB31.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A8BB5
Deuteranopia (green-blind)
#687EB2
Tritanopia (blue-blind)
#00989A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338db3;
/* rgb */ color: rgb(51, 141, 179);
/* oklch */ color: oklch(60.7% 0.101 230.0);
Tailwind
colors: {
  custom: {
    50: '#7baeca',
    500: '#338db3',
    950: '#000000',
  },
}
SCSS
$custom: #338db3;
$custom-light: #7baeca;
$custom-dark: #000000;
JSON
{
  "hex": "#338db3",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 179
  },
  "hsl": {
    "h": 197.813,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.6068,
    "c": 0.10116,
    "h": 230
  },
  "luminance": 0.23008
}

Semantic roles & 50–950 ramp

primary
#338DB3
secondary
#C6927C
accent
#7549DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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