#338AA6#338AA6

#338AA6 is a mid, moderate cyan. Relative luminance 0.216; OKLCH L 59.4% C 0.092 H 223.1°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#338AA6
RGBrgb(51, 138, 166)
HSLhsl(195, 53%, 43%)
HSVhsv(195, 69%, 65%)
CMYKcmyk(69.3%, 16.9%, 0%, 34.9%)
CIE-LABlab(53.63, -16.60, -22.38)
CIE-LCHlch(53.63, 27.86, 233.43°)
OKLaboklab(59.35% -0.0669 -0.0625)
OKLCHoklch(59.35% 0.092 223.1)
XYZxyz(17.3338, 21.6320, 39.3309)
Luminance0.2163 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AA6 #A64F33
analogous
#33A689 #338AA6 #3350A6
triadic
#338AA6 #A6338A #8AA633
tetradic
#338AA6 #8933A6 #A64F33 #50A633
square
#338AA6 #8933A6 #A64F33 #50A633
split-complementary
#338AA6 #A63350 #A68933
monochromatic
#163C48 #256377 #338AA6 #4EABC9 #7CC1D7

Accessibility & contrast

On white

3.94
#338AA6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#338AA6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AA6
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AA6#FFFFFF#000000##000000
##338AA61.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A87A7
Deuteranopia (green-blind)
#6A7BA6
Tritanopia (blue-blind)
#009393
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #338aa6;
/* rgb */ color: rgb(51, 138, 166);
/* oklch */ color: oklch(59.4% 0.092 223.1);
Tailwind
colors: {
  custom: {
    50: '#79acc0',
    500: '#338aa6',
    950: '#000000',
  },
}
SCSS
$custom: #338aa6;
$custom-light: #79acc0;
$custom-dark: #000000;
JSON
{
  "hex": "#338aa6",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 166
  },
  "hsl": {
    "h": 194.609,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.59351,
    "c": 0.09157,
    "h": 223.1
  },
  "luminance": 0.21634
}

Semantic roles & 50–950 ramp

primary
#338AA6
secondary
#C08775
accent
#6F4BDC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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