#338CB4#338CB4

#338CB4 is a mid, moderate cyan. Relative luminance 0.228; OKLCH L 60.5% C 0.102 H 231.6°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#338CB4
RGBrgb(51, 140, 180)
HSLhsl(199, 56%, 45%)
HSVhsv(199, 72%, 71%)
CMYKcmyk(71.7%, 22.2%, 0%, 29.4%)
CIE-LABlab(54.82, -13.00, -28.58)
CIE-LCHlch(54.82, 31.40, 245.54°)
OKLaboklab(60.49% -0.0637 -0.0803)
OKLCHoklch(60.49% 0.102 231.6)
XYZxyz(18.9783, 22.7531, 46.5627)
Luminance0.2276 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CB4 #B45B33
analogous
#33B49C #338CB4 #334BB4
triadic
#338CB4 #B4338C #8CB433
tetradic
#338CB4 #9C33B4 #B45B33 #4BB433
square
#338CB4 #9C33B4 #B45B33 #4BB433
split-complementary
#338CB4 #B4334B #B49C33
monochromatic
#184255 #256784 #338CB4 #55A9CF #85C1DC

Accessibility & contrast

On white

3.78
#338CB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#338CB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CB4
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CB4#FFFFFF#000000##000000
##338CB41.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#788AB6
Deuteranopia (green-blind)
#667EB3
Tritanopia (blue-blind)
#009799
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338cb4;
/* rgb */ color: rgb(51, 140, 180);
/* oklch */ color: oklch(60.5% 0.102 231.6);
Tailwind
colors: {
  custom: {
    50: '#7badca',
    500: '#338cb4',
    950: '#000000',
  },
}
SCSS
$custom: #338cb4;
$custom-light: #7badca;
$custom-dark: #000000;
JSON
{
  "hex": "#338cb4",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 180
  },
  "hsl": {
    "h": 198.605,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.60485,
    "c": 0.10246,
    "h": 231.6
  },
  "luminance": 0.22755
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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