#338CB3#338CB3

#338CB3 is a mid, moderate cyan. Relative luminance 0.227; OKLCH L 60.4% C 0.102 H 230.9°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#338CB3
RGBrgb(51, 140, 179)
HSLhsl(198, 56%, 45%)
HSVhsv(198, 72%, 70%)
CMYKcmyk(71.5%, 21.8%, 0%, 29.8%)
CIE-LABlab(54.77, -13.34, -28.08)
CIE-LCHlch(54.77, 31.09, 244.58°)
OKLaboklab(60.44% -0.064 -0.0788)
OKLCHoklch(60.44% 0.102 230.9)
XYZxyz(18.8767, 22.7125, 46.0282)
Luminance0.2271 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CB3 #B35A33
analogous
#33B39A #338CB3 #334CB3
triadic
#338CB3 #B3338C #8CB333
tetradic
#338CB3 #9A33B3 #B35A33 #4CB333
square
#338CB3 #9A33B3 #B35A33 #4CB333
split-complementary
#338CB3 #B3334C #B39A33
monochromatic
#184154 #256783 #338CB3 #55A9CE #84C1DC

Accessibility & contrast

On white

3.79
#338CB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#338CB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CB3
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CB3#FFFFFF#000000##000000
##338CB31.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#788AB5
Deuteranopia (green-blind)
#677EB2
Tritanopia (blue-blind)
#009799
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338cb3;
/* rgb */ color: rgb(51, 140, 179);
/* oklch */ color: oklch(60.4% 0.102 230.9);
Tailwind
colors: {
  custom: {
    50: '#7badca',
    500: '#338cb3',
    950: '#000000',
  },
}
SCSS
$custom: #338cb3;
$custom-light: #7badca;
$custom-dark: #000000;
JSON
{
  "hex": "#338cb3",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 179
  },
  "hsl": {
    "h": 198.281,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.60438,
    "c": 0.10156,
    "h": 230.9
  },
  "luminance": 0.22715
}

Semantic roles & 50–950 ramp

primary
#338CB3
secondary
#C6937C
accent
#7749DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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