#338CBC#338CBC

#338CBC is a mid, moderate cyan. Relative luminance 0.231; OKLCH L 60.9% C 0.110 H 236.5°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#338CBC
RGBrgb(51, 140, 188)
HSLhsl(201, 57%, 47%)
HSVhsv(201, 73%, 74%)
CMYKcmyk(72.9%, 25.5%, 0%, 26.3%)
CIE-LABlab(55.16, -10.25, -32.61)
CIE-LCHlch(55.16, 34.18, 252.54°)
OKLaboklab(60.88% -0.0609 -0.0919)
OKLCHoklch(60.88% 0.11 236.5)
XYZxyz(19.8168, 23.0885, 50.9793)
Luminance0.2309 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CBC #BC6333
analogous
#33BCA8 #338CBC #3348BC
triadic
#338CBC #BC338C #8CBC33
tetradic
#338CBC #A833BC #BC6333 #48BC33
square
#338CBC #A833BC #BC6333 #48BC33
split-complementary
#338CBC #BC3348 #BCA833
monochromatic
#19445C #26688C #338CBC #5AA8D2 #8AC1DF

Accessibility & contrast

On white

3.74
#338CBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#338CBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CBC
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CBC#FFFFFF#000000##000000
##338CBC1.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#758BBE
Deuteranopia (green-blind)
#627EBB
Tritanopia (blue-blind)
#00989C
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338cbc;
/* rgb */ color: rgb(51, 140, 188);
/* oklch */ color: oklch(60.9% 0.110 236.5);
Tailwind
colors: {
  custom: {
    50: '#7dadd0',
    500: '#338cbc',
    950: '#000000',
  },
}
SCSS
$custom: #338cbc;
$custom-light: #7dadd0;
$custom-dark: #000000;
JSON
{
  "hex": "#338cbc",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 188
  },
  "hsl": {
    "h": 201.022,
    "s": 57.322,
    "l": 46.863
  },
  "oklch": {
    "l": 0.60875,
    "c": 0.11021,
    "h": 236.5
  },
  "luminance": 0.23091
}

Semantic roles & 50–950 ramp

primary
#338CBC
secondary
#C99B81
accent
#7D47E1
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1014
muted
#7C7F82

Preview Lab

Preview with #338CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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