#338ACC#338ACC

#338ACC is a mid, vivid cyan. Relative luminance 0.232; OKLCH L 61.2% C 0.129 H 245.4°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#338ACC
RGBrgb(51, 138, 204)
HSLhsl(206, 60%, 50%)
HSVhsv(206, 75%, 80%)
CMYKcmyk(75%, 32.4%, 0%, 20%)
CIE-LABlab(55.32, -3.46, -41.44)
CIE-LCHlch(55.32, 41.59, 265.22°)
OKLaboklab(61.24% -0.0539 -0.1176)
OKLCHoklch(61.24% 0.129 245.4)
XYZxyz(21.3486, 23.2379, 60.4753)
Luminance0.2324 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338ACC #CC7533
analogous
#33CCC1 #338ACC #333ECC
triadic
#338ACC #CC338A #8ACC33
tetradic
#338ACC #C133CC #CC7533 #3ECC33
square
#338ACC #C133CC #CC7533 #3ECC33
split-complementary
#338ACC #CC333E #CCC133
monochromatic
#1B486A #27699B #338ACC #64A6D8 #95C2E4

Accessibility & contrast

On white

3.72
#338ACC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#338ACC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338ACC
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338ACC#FFFFFF#000000##000000
##338ACC1.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C8CCF
Deuteranopia (green-blind)
#567ECB
Tritanopia (blue-blind)
#009AA2
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338acc;
/* rgb */ color: rgb(51, 138, 204);
/* oklch */ color: oklch(61.2% 0.129 245.4);
Tailwind
colors: {
  custom: {
    50: '#7fabdc',
    500: '#338acc',
    950: '#000000',
  },
}
SCSS
$custom: #338acc;
$custom-light: #7fabdc;
$custom-dark: #000000;
JSON
{
  "hex": "#338acc",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 204
  },
  "hsl": {
    "h": 205.882,
    "s": 60,
    "l": 50
  },
  "oklch": {
    "l": 0.61242,
    "c": 0.12934,
    "h": 245.4
  },
  "luminance": 0.2324
}

Semantic roles & 50–950 ramp

primary
#338ACC
secondary
#D0A98B
accent
#8945E3
background
#F8FAFD
surface
#F0F4FB
border
#CBCED4
text
#0C1015
muted
#7D7F83

Preview Lab

Preview with #338ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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