#338EB6#338EB6

#338EB6 is a mid, moderate cyan. Relative luminance 0.234; OKLCH L 61.1% C 0.103 H 231.1°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#338EB6
RGBrgb(51, 142, 182)
HSLhsl(198, 56%, 46%)
HSVhsv(198, 72%, 71%)
CMYKcmyk(72%, 22%, 0%, 28.6%)
CIE-LABlab(55.51, -13.43, -28.65)
CIE-LCHlch(55.51, 31.65, 244.88°)
OKLaboklab(61.06% -0.065 -0.0805)
OKLCHoklch(61.06% 0.103 231.1)
XYZxyz(19.4784, 23.4250, 47.7418)
Luminance0.2343 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EB6 #B65B33
analogous
#33B69C #338EB6 #334CB6
triadic
#338EB6 #B6338E #8EB633
tetradic
#338EB6 #9C33B6 #B65B33 #4CB633
square
#338EB6 #9C33B6 #B65B33 #4CB633
split-complementary
#338EB6 #B6334C #B69C33
monochromatic
#184356 #266986 #338EB6 #56ABD0 #86C3DD

Accessibility & contrast

On white

3.69
#338EB6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#338EB6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EB6
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EB6#FFFFFF#000000##000000
##338EB61.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A8CB8
Deuteranopia (green-blind)
#687FB5
Tritanopia (blue-blind)
#00999B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #338eb6;
/* rgb */ color: rgb(51, 142, 182);
/* oklch */ color: oklch(61.1% 0.103 231.1);
Tailwind
colors: {
  custom: {
    50: '#7cafcc',
    500: '#338eb6',
    950: '#000000',
  },
}
SCSS
$custom: #338eb6;
$custom-light: #7cafcc;
$custom-dark: #000000;
JSON
{
  "hex": "#338eb6",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 182
  },
  "hsl": {
    "h": 198.321,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.61064,
    "c": 0.10342,
    "h": 231.1
  },
  "luminance": 0.23427
}

Semantic roles & 50–950 ramp

primary
#338EB6
secondary
#C7947E
accent
#7648E0
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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