#338AA7#338AA7

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

Color values

HEX#338AA7
RGBrgb(51, 138, 167)
HSLhsl(195, 53%, 43%)
HSVhsv(195, 69%, 65%)
CMYKcmyk(69.5%, 17.4%, 0%, 34.5%)
CIE-LABlab(53.67, -16.27, -22.89)
CIE-LCHlch(53.67, 28.09, 234.59°)
OKLaboklab(59.4% -0.0665 -0.064)
OKLCHoklch(59.4% 0.092 223.9)
XYZxyz(17.4259, 21.6688, 39.8158)
Luminance0.2167 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AA7 #A75033
analogous
#33A78A #338AA7 #3350A7
triadic
#338AA7 #A7338A #8AA733
tetradic
#338AA7 #8A33A7 #A75033 #50A733
square
#338AA7 #8A33A7 #A75033 #50A733
split-complementary
#338AA7 #A73350 #A78A33
monochromatic
#163D49 #256378 #338AA7 #4EAAC9 #7DC1D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338AA7#FFFFFF#000000##000000
##338AA71.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)
#7A87A9
Deuteranopia (green-blind)
#6A7BA7
Tritanopia (blue-blind)
#009393
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #338aa7;
/* rgb */ color: rgb(51, 138, 167);
/* oklch */ color: oklch(59.4% 0.092 223.9);
Tailwind
colors: {
  custom: {
    50: '#79acc1',
    500: '#338aa7',
    950: '#000000',
  },
}
SCSS
$custom: #338aa7;
$custom-light: #79acc1;
$custom-dark: #000000;
JSON
{
  "hex": "#338aa7",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 167
  },
  "hsl": {
    "h": 195,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.59396,
    "c": 0.09229,
    "h": 223.9
  },
  "luminance": 0.21671
}

Semantic roles & 50–950 ramp

primary
#338AA7
secondary
#C08876
accent
#704BDD
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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