#338CB7#338CB7

#338CB7 is a mid, moderate cyan. Relative luminance 0.229; OKLCH L 60.6% C 0.105 H 233.5°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#338CB7
RGBrgb(51, 140, 183)
HSLhsl(200, 56%, 46%)
HSVhsv(200, 72%, 72%)
CMYKcmyk(72.1%, 23.5%, 0%, 28.2%)
CIE-LABlab(54.95, -11.98, -30.10)
CIE-LCHlch(54.95, 32.39, 248.30°)
OKLaboklab(60.63% -0.0626 -0.0846)
OKLCHoklch(60.63% 0.105 233.5)
XYZxyz(19.2872, 22.8767, 48.1897)
Luminance0.2288 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CB7 #B75E33
analogous
#33B7A0 #338CB7 #334AB7
triadic
#338CB7 #B7338C #8CB733
tetradic
#338CB7 #A033B7 #B75E33 #4AB733
square
#338CB7 #A033B7 #B75E33 #4AB733
split-complementary
#338CB7 #B7334A #B7A033
monochromatic
#184357 #266787 #338CB7 #57A9D0 #87C1DE

Accessibility & contrast

On white

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

On black

5.58
#338CB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CB7
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CB7#FFFFFF#000000##000000
##338CB71.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338cb7;
/* rgb */ color: rgb(51, 140, 183);
/* oklch */ color: oklch(60.6% 0.105 233.5);
Tailwind
colors: {
  custom: {
    50: '#7cadcc',
    500: '#338cb7',
    950: '#000000',
  },
}
SCSS
$custom: #338cb7;
$custom-light: #7cadcc;
$custom-dark: #000000;
JSON
{
  "hex": "#338cb7",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 183
  },
  "hsl": {
    "h": 199.545,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.6063,
    "c": 0.10527,
    "h": 233.5
  },
  "luminance": 0.22879
}

Semantic roles & 50–950 ramp

primary
#338CB7
secondary
#C7967F
accent
#7948E0
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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