#338AC2#338AC2

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

Color values

HEX#338AC2
RGBrgb(51, 138, 194)
HSLhsl(203, 58%, 48%)
HSVhsv(203, 74%, 76%)
CMYKcmyk(73.7%, 28.9%, 0%, 23.9%)
CIE-LABlab(54.84, -7.02, -36.53)
CIE-LCHlch(54.84, 37.19, 259.13°)
OKLaboklab(60.71% -0.0569 -0.1033)
OKLCHoklch(60.71% 0.118 241.1)
XYZxyz(20.1875, 22.7735, 54.3603)
Luminance0.2278 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AC2 #C26B33
analogous
#33C2B3 #338AC2 #3342C2
triadic
#338AC2 #C2338A #8AC233
tetradic
#338AC2 #B333C2 #C26B33 #42C233
square
#338AC2 #B333C2 #C26B33 #42C233
split-complementary
#338AC2 #C23342 #C2B333
monochromatic
#1A4561 #266892 #338AC2 #5EA6D5 #8EC1E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338AC2#FFFFFF#000000##000000
##338AC21.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)
#708BC5
Deuteranopia (green-blind)
#5C7DC1
Tritanopia (blue-blind)
#00989E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338ac2;
/* rgb */ color: rgb(51, 138, 194);
/* oklch */ color: oklch(60.7% 0.118 241.1);
Tailwind
colors: {
  custom: {
    50: '#7eacd4',
    500: '#338ac2',
    950: '#000000',
  },
}
SCSS
$custom: #338ac2;
$custom-light: #7eacd4;
$custom-dark: #000000;
JSON
{
  "hex": "#338ac2",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 194
  },
  "hsl": {
    "h": 203.497,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.60707,
    "c": 0.11793,
    "h": 241.1
  },
  "luminance": 0.22776
}

Semantic roles & 50–950 ramp

primary
#338AC2
secondary
#CCA185
accent
#8346E2
background
#F8FAFD
surface
#EFF4FA
border
#CACED3
text
#0B1014
muted
#7C7F83

Preview Lab

Preview with #338AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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