#338AC3#338AC3

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

Color values

HEX#338AC3
RGBrgb(51, 138, 195)
HSLhsl(204, 59%, 48%)
HSVhsv(204, 74%, 76%)
CMYKcmyk(73.8%, 29.2%, 0%, 23.5%)
CIE-LABlab(54.88, -6.66, -37.02)
CIE-LCHlch(54.88, 37.62, 259.80°)
OKLaboklab(60.76% -0.0566 -0.1047)
OKLCHoklch(60.76% 0.119 241.6)
XYZxyz(20.3002, 22.8186, 54.9537)
Luminance0.2282 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AC3 #C36C33
analogous
#33C3B4 #338AC3 #3342C3
triadic
#338AC3 #C3338A #8AC333
tetradic
#338AC3 #B433C3 #C36C33 #42C333
square
#338AC3 #B433C3 #C36C33 #42C333
split-complementary
#338AC3 #C33342 #C3B433
monochromatic
#1A4562 #266892 #338AC3 #5EA6D5 #8FC1E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338AC3#FFFFFF#000000##000000
##338AC31.003.775.565.56
#FFFFFF3.771.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#708BC6
Deuteranopia (green-blind)
#5C7DC2
Tritanopia (blue-blind)
#00989E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338ac3;
/* rgb */ color: rgb(51, 138, 195);
/* oklch */ color: oklch(60.8% 0.119 241.6);
Tailwind
colors: {
  custom: {
    50: '#7eacd5',
    500: '#338ac3',
    950: '#000000',
  },
}
SCSS
$custom: #338ac3;
$custom-light: #7eacd5;
$custom-dark: #000000;
JSON
{
  "hex": "#338ac3",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 195
  },
  "hsl": {
    "h": 203.75,
    "s": 58.537,
    "l": 48.235
  },
  "oklch": {
    "l": 0.60759,
    "c": 0.11903,
    "h": 241.6
  },
  "luminance": 0.22821
}

Semantic roles & 50–950 ramp

primary
#338AC3
secondary
#CCA286
accent
#8446E2
background
#F8FAFD
surface
#EFF4FA
border
#CACED3
text
#0B1014
muted
#7C7F83

Preview Lab

Preview with #338AC3

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

Preview Lab → · Contrast checker → · Palette generator →

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