#338AA5#338AA5

#338AA5 is a mid, moderate cyan. Relative luminance 0.216; OKLCH L 59.3% C 0.091 H 222.2°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#338AA5
RGBrgb(51, 138, 165)
HSLhsl(194, 53%, 42%)
HSVhsv(194, 69%, 65%)
CMYKcmyk(69.1%, 16.4%, 0%, 35.3%)
CIE-LABlab(53.60, -16.93, -21.86)
CIE-LCHlch(53.60, 27.65, 232.24°)
OKLaboklab(59.31% -0.0673 -0.061)
OKLCHoklch(59.31% 0.091 222.2)
XYZxyz(17.2425, 21.5955, 38.8496)
Luminance0.2160 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AA5 #A54E33
analogous
#33A587 #338AA5 #3351A5
triadic
#338AA5 #A5338A #8AA533
tetradic
#338AA5 #8733A5 #A54E33 #51A533
square
#338AA5 #8733A5 #A54E33 #51A533
split-complementary
#338AA5 #A53351 #A58733
monochromatic
#163C48 #256376 #338AA5 #4DABC8 #7CC1D6

Accessibility & contrast

On white

3.95
#338AA5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#338AA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AA5
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AA5#FFFFFF#000000##000000
##338AA51.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A87A6
Deuteranopia (green-blind)
#6A7BA5
Tritanopia (blue-blind)
#009293
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #338aa5;
/* rgb */ color: rgb(51, 138, 165);
/* oklch */ color: oklch(59.3% 0.091 222.2);
Tailwind
colors: {
  custom: {
    50: '#79acbf',
    500: '#338aa5',
    950: '#000000',
  },
}
SCSS
$custom: #338aa5;
$custom-light: #79acbf;
$custom-dark: #000000;
JSON
{
  "hex": "#338aa5",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 165
  },
  "hsl": {
    "h": 194.211,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.59307,
    "c": 0.09087,
    "h": 222.2
  },
  "luminance": 0.21597
}

Semantic roles & 50–950 ramp

primary
#338AA5
secondary
#BF8675
accent
#6E4CDC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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