#338AC5#338AC5

#338AC5 is a mid, vivid cyan. Relative luminance 0.229; OKLCH L 60.9% C 0.121 H 242.5°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#338AC5
RGBrgb(51, 138, 197)
HSLhsl(204, 59%, 49%)
HSVhsv(204, 74%, 77%)
CMYKcmyk(74.1%, 29.9%, 0%, 22.7%)
CIE-LABlab(54.98, -5.96, -38.01)
CIE-LCHlch(54.98, 38.47, 261.09°)
OKLaboklab(60.87% -0.056 -0.1076)
OKLCHoklch(60.87% 0.121 242.5)
XYZxyz(20.5279, 22.9096, 56.1526)
Luminance0.2291 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AC5 #C56E33
analogous
#33C5B7 #338AC5 #3341C5
triadic
#338AC5 #C5338A #8AC533
tetradic
#338AC5 #B733C5 #C56E33 #41C533
square
#338AC5 #B733C5 #C56E33 #41C533
split-complementary
#338AC5 #C53341 #C5B733
monochromatic
#1A4664 #266894 #338AC5 #5FA6D6 #90C1E2

Accessibility & contrast

On white

3.76
#338AC5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#338AC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AC5
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AC5#FFFFFF#000000##000000
##338AC51.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F8BC8
Deuteranopia (green-blind)
#5B7DC4
Tritanopia (blue-blind)
#00999F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338ac5;
/* rgb */ color: rgb(51, 138, 197);
/* oklch */ color: oklch(60.9% 0.121 242.5);
Tailwind
colors: {
  custom: {
    50: '#7eabd7',
    500: '#338ac5',
    950: '#000000',
  },
}
SCSS
$custom: #338ac5;
$custom-light: #7eabd7;
$custom-dark: #000000;
JSON
{
  "hex": "#338ac5",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 197
  },
  "hsl": {
    "h": 204.247,
    "s": 58.871,
    "l": 48.627
  },
  "oklch": {
    "l": 0.60865,
    "c": 0.12128,
    "h": 242.5
  },
  "luminance": 0.22912
}

Semantic roles & 50–950 ramp

primary
#338AC5
secondary
#CDA387
accent
#8546E2
background
#F8FAFD
surface
#EFF4FA
border
#CACED3
text
#0B1014
muted
#7C7F83

Preview Lab

Preview with #338AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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