#338BA8#338BA8

#338BA8 is a mid, moderate cyan. Relative luminance 0.220; OKLCH L 59.7% C 0.093 H 223.7°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#338BA8
RGBrgb(51, 139, 168)
HSLhsl(195, 53%, 43%)
HSVhsv(195, 70%, 66%)
CMYKcmyk(69.6%, 17.3%, 0%, 34.1%)
CIE-LABlab(54.02, -16.49, -22.93)
CIE-LCHlch(54.02, 28.24, 234.29°)
OKLaboklab(59.69% -0.0672 -0.0641)
OKLCHoklch(59.69% 0.093 223.7)
XYZxyz(17.6629, 21.9942, 40.3526)
Luminance0.2200 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BA8 #A85033
analogous
#33A88B #338BA8 #3350A8
triadic
#338BA8 #A8338B #8BA833
tetradic
#338BA8 #8B33A8 #A85033 #50A833
square
#338BA8 #8B33A8 #A85033 #50A833
split-complementary
#338BA8 #A83350 #A88B33
monochromatic
#163D4A #256479 #338BA8 #4FABC9 #7EC1D8

Accessibility & contrast

On white

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

On black

5.40
#338BA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338BA8
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338BA8#FFFFFF#000000##000000
##338BA81.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338ba8;
/* rgb */ color: rgb(51, 139, 168);
/* oklch */ color: oklch(59.7% 0.093 223.7);
Tailwind
colors: {
  custom: {
    50: '#7aadc2',
    500: '#338ba8',
    950: '#000000',
  },
}
SCSS
$custom: #338ba8;
$custom-light: #7aadc2;
$custom-dark: #000000;
JSON
{
  "hex": "#338ba8",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 168
  },
  "hsl": {
    "h": 194.872,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.59687,
    "c": 0.09284,
    "h": 223.7
  },
  "luminance": 0.21996
}

Semantic roles & 50–950 ramp

primary
#338BA8
secondary
#C18976
accent
#6F4BDD
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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