#338CB5#338CB5

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

Color values

HEX#338CB5
RGBrgb(51, 140, 181)
HSLhsl(199, 56%, 45%)
HSVhsv(199, 72%, 71%)
CMYKcmyk(71.8%, 22.7%, 0%, 29%)
CIE-LABlab(54.86, -12.66, -29.09)
CIE-LCHlch(54.86, 31.72, 246.47°)
OKLaboklab(60.53% -0.0633 -0.0817)
OKLCHoklch(60.53% 0.103 232.2)
XYZxyz(19.0805, 22.7940, 47.1012)
Luminance0.2280 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CB5 #B55C33
analogous
#33B59D #338CB5 #334BB5
triadic
#338CB5 #B5338C #8CB533
tetradic
#338CB5 #9D33B5 #B55C33 #4BB533
square
#338CB5 #9D33B5 #B55C33 #4BB533
split-complementary
#338CB5 #B5334B #B59D33
monochromatic
#184256 #266785 #338CB5 #56A9CF #86C1DD

Accessibility & contrast

On white

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

On black

5.56
#338CB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CB5
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CB5#FFFFFF#000000##000000
##338CB51.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#788AB7
Deuteranopia (green-blind)
#667EB4
Tritanopia (blue-blind)
#00979A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338cb5;
/* rgb */ color: rgb(51, 140, 181);
/* oklch */ color: oklch(60.5% 0.103 232.2);
Tailwind
colors: {
  custom: {
    50: '#7cadcb',
    500: '#338cb5',
    950: '#000000',
  },
}
SCSS
$custom: #338cb5;
$custom-light: #7cadcb;
$custom-dark: #000000;
JSON
{
  "hex": "#338cb5",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 181
  },
  "hsl": {
    "h": 198.923,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.60533,
    "c": 0.10339,
    "h": 232.2
  },
  "luminance": 0.22796
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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