#338AC0#338AC0

#338AC0 is a mid, moderate cyan. Relative luminance 0.227; OKLCH L 60.6% C 0.116 H 240.2°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#338AC0
RGBrgb(51, 138, 192)
HSLhsl(203, 58%, 48%)
HSVhsv(203, 73%, 75%)
CMYKcmyk(73.4%, 28.1%, 0%, 24.7%)
CIE-LABlab(54.75, -7.72, -35.53)
CIE-LCHlch(54.75, 36.36, 257.74°)
OKLaboklab(60.6% -0.0576 -0.1004)
OKLCHoklch(60.6% 0.116 240.2)
XYZxyz(19.9644, 22.6842, 53.1853)
Luminance0.2269 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AC0 #C06933
analogous
#33C0B0 #338AC0 #3343C0
triadic
#338AC0 #C0338A #8AC033
tetradic
#338AC0 #B033C0 #C06933 #43C033
square
#338AC0 #B033C0 #C06933 #43C033
split-complementary
#338AC0 #C03343 #C0B033
monochromatic
#19445F #266790 #338AC0 #5CA6D4 #8DC1E1

Accessibility & contrast

On white

3.79
#338AC0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#338AC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AC0
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AC0#FFFFFF#000000##000000
##338AC01.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#718AC2
Deuteranopia (green-blind)
#5E7DBF
Tritanopia (blue-blind)
#00989D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338ac0;
/* rgb */ color: rgb(51, 138, 192);
/* oklch */ color: oklch(60.6% 0.116 240.2);
Tailwind
colors: {
  custom: {
    50: '#7dacd3',
    500: '#338ac0',
    950: '#000000',
  },
}
SCSS
$custom: #338ac0;
$custom-light: #7dacd3;
$custom-dark: #000000;
JSON
{
  "hex": "#338ac0",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 192
  },
  "hsl": {
    "h": 202.979,
    "s": 58.025,
    "l": 47.647
  },
  "oklch": {
    "l": 0.60603,
    "c": 0.11573,
    "h": 240.2
  },
  "luminance": 0.22687
}

Semantic roles & 50–950 ramp

primary
#338AC0
secondary
#CB9F84
accent
#8247E1
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1014
muted
#7C7F82

Preview Lab

Preview with #338AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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