#338CBA#338CBA

#338CBA is a mid, moderate cyan. Relative luminance 0.230; OKLCH L 60.8% C 0.108 H 235.3°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#338CBA
RGBrgb(51, 140, 186)
HSLhsl(200, 57%, 46%)
HSVhsv(200, 73%, 73%)
CMYKcmyk(72.6%, 24.7%, 0%, 27.1%)
CIE-LABlab(55.08, -10.95, -31.60)
CIE-LCHlch(55.08, 33.45, 250.90°)
OKLaboklab(60.78% -0.0616 -0.089)
OKLCHoklch(60.78% 0.108 235.3)
XYZxyz(19.6027, 23.0029, 49.8517)
Luminance0.2301 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CBA #BA6133
analogous
#33BAA5 #338CBA #3349BA
triadic
#338CBA #BA338C #8CBA33
tetradic
#338CBA #A533BA #BA6133 #49BA33
square
#338CBA #A533BA #BA6133 #49BA33
split-complementary
#338CBA #BA3349 #BAA533
monochromatic
#19445A #26688A #338CBA #59A8D1 #89C1DF

Accessibility & contrast

On white

3.75
#338CBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#338CBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CBA
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CBA#FFFFFF#000000##000000
##338CBA1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#768BBC
Deuteranopia (green-blind)
#637EB9
Tritanopia (blue-blind)
#00989C
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338cba;
/* rgb */ color: rgb(51, 140, 186);
/* oklch */ color: oklch(60.8% 0.108 235.3);
Tailwind
colors: {
  custom: {
    50: '#7cadcf',
    500: '#338cba',
    950: '#000000',
  },
}
SCSS
$custom: #338cba;
$custom-light: #7cadcf;
$custom-dark: #000000;
JSON
{
  "hex": "#338cba",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 186
  },
  "hsl": {
    "h": 200.444,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.60776,
    "c": 0.1082,
    "h": 235.3
  },
  "luminance": 0.23005
}

Semantic roles & 50–950 ramp

primary
#338CBA
secondary
#C99980
accent
#7C48E0
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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