#338DB6#338DB6

#338DB6 is a mid, moderate cyan. Relative luminance 0.231; OKLCH L 60.8% C 0.104 H 232.0°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#338DB6
RGBrgb(51, 141, 182)
HSLhsl(199, 56%, 46%)
HSVhsv(199, 72%, 71%)
CMYKcmyk(72%, 22.5%, 0%, 28.6%)
CIE-LABlab(55.20, -12.88, -29.12)
CIE-LCHlch(55.20, 31.84, 246.14°)
OKLaboklab(60.82% -0.064 -0.0818)
OKLCHoklch(60.82% 0.104 232)
XYZxyz(19.3302, 23.1288, 47.6924)
Luminance0.2313 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338DB6 #B65C33
analogous
#33B69D #338DB6 #334BB6
triadic
#338DB6 #B6338D #8DB633
tetradic
#338DB6 #9D33B6 #B65C33 #4BB633
square
#338DB6 #9D33B6 #B65C33 #4BB633
split-complementary
#338DB6 #B6334B #B69D33
monochromatic
#184356 #266886 #338DB6 #56AAD0 #86C2DD

Accessibility & contrast

On white

3.73
#338DB6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#338DB6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338DB6
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338DB6#FFFFFF#000000##000000
##338DB61.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#798BB8
Deuteranopia (green-blind)
#677FB5
Tritanopia (blue-blind)
#00989B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338db6;
/* rgb */ color: rgb(51, 141, 182);
/* oklch */ color: oklch(60.8% 0.104 232.0);
Tailwind
colors: {
  custom: {
    50: '#7caecc',
    500: '#338db6',
    950: '#000000',
  },
}
SCSS
$custom: #338db6;
$custom-light: #7caecc;
$custom-dark: #000000;
JSON
{
  "hex": "#338db6",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 182
  },
  "hsl": {
    "h": 198.779,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.60823,
    "c": 0.10386,
    "h": 232
  },
  "luminance": 0.23131
}

Semantic roles & 50–950 ramp

primary
#338DB6
secondary
#C7957E
accent
#7848E0
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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