#338BA7#338BA7

#338BA7 is a mid, moderate cyan. Relative luminance 0.220; OKLCH L 59.6% C 0.092 H 222.8°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#338BA7
RGBrgb(51, 139, 167)
HSLhsl(194, 53%, 43%)
HSVhsv(194, 69%, 65%)
CMYKcmyk(69.5%, 16.8%, 0%, 34.5%)
CIE-LABlab(53.98, -16.82, -22.42)
CIE-LCHlch(53.98, 28.03, 233.13°)
OKLaboklab(59.64% -0.0676 -0.0626)
OKLCHoklch(59.64% 0.092 222.8)
XYZxyz(17.5701, 21.9571, 39.8639)
Luminance0.2196 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BA7 #A74F33
analogous
#33A789 #338BA7 #3351A7
triadic
#338BA7 #A7338B #8BA733
tetradic
#338BA7 #8933A7 #A74F33 #51A733
square
#338BA7 #8933A7 #A74F33 #51A733
split-complementary
#338BA7 #A73351 #A78933
monochromatic
#163D49 #256478 #338BA7 #4EABC9 #7DC2D7

Accessibility & contrast

On white

3.89
#338BA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#338BA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338BA7
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338BA7#FFFFFF#000000##000000
##338BA71.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B88A8
Deuteranopia (green-blind)
#6B7CA7
Tritanopia (blue-blind)
#009494
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338ba7;
/* rgb */ color: rgb(51, 139, 167);
/* oklch */ color: oklch(59.6% 0.092 222.8);
Tailwind
colors: {
  custom: {
    50: '#79adc1',
    500: '#338ba7',
    950: '#000000',
  },
}
SCSS
$custom: #338ba7;
$custom-light: #79adc1;
$custom-dark: #000000;
JSON
{
  "hex": "#338ba7",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 167
  },
  "hsl": {
    "h": 194.483,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.59642,
    "c": 0.09213,
    "h": 222.8
  },
  "luminance": 0.21959
}

Semantic roles & 50–950 ramp

primary
#338BA7
secondary
#C08876
accent
#6E4BDD
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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