#338CB6#338CB6

#338CB6 is a mid, moderate cyan. Relative luminance 0.228; OKLCH L 60.6% C 0.104 H 232.9°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#338CB6
RGBrgb(51, 140, 182)
HSLhsl(199, 56%, 46%)
HSVhsv(199, 72%, 71%)
CMYKcmyk(72%, 23.1%, 0%, 28.6%)
CIE-LABlab(54.90, -12.32, -29.59)
CIE-LCHlch(54.90, 32.05, 247.39°)
OKLaboklab(60.58% -0.063 -0.0832)
OKLCHoklch(60.58% 0.104 232.9)
XYZxyz(19.1835, 22.8352, 47.6435)
Luminance0.2284 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CB6 #B65D33
analogous
#33B69E #338CB6 #334AB6
triadic
#338CB6 #B6338C #8CB633
tetradic
#338CB6 #9E33B6 #B65D33 #4AB633
square
#338CB6 #9E33B6 #B65D33 #4AB633
split-complementary
#338CB6 #B6334A #B69E33
monochromatic
#184256 #266786 #338CB6 #56A9D0 #86C1DD

Accessibility & contrast

On white

3.77
#338CB6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#338CB6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CB6
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CB6#FFFFFF#000000##000000
##338CB61.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#778BB8
Deuteranopia (green-blind)
#657EB5
Tritanopia (blue-blind)
#00979A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338cb6;
/* rgb */ color: rgb(51, 140, 182);
/* oklch */ color: oklch(60.6% 0.104 232.9);
Tailwind
colors: {
  custom: {
    50: '#7cadcc',
    500: '#338cb6',
    950: '#000000',
  },
}
SCSS
$custom: #338cb6;
$custom-light: #7cadcc;
$custom-dark: #000000;
JSON
{
  "hex": "#338cb6",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 182
  },
  "hsl": {
    "h": 199.237,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.60581,
    "c": 0.10433,
    "h": 232.9
  },
  "luminance": 0.22837
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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