#338BA2#338BA2

#338BA2 is a mid, moderate cyan. Relative luminance 0.218; OKLCH L 59.4% C 0.089 H 218.5°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#338BA2
RGBrgb(51, 139, 162)
HSLhsl(192, 52%, 42%)
HSVhsv(192, 69%, 64%)
CMYKcmyk(68.5%, 14.2%, 0%, 36.5%)
CIE-LABlab(53.79, -18.45, -19.84)
CIE-LCHlch(53.79, 27.09, 227.07°)
OKLaboklab(59.42% -0.0696 -0.0553)
OKLCHoklch(59.42% 0.089 218.5)
XYZxyz(17.1168, 21.7758, 37.4765)
Luminance0.2178 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BA2 #A24A33
analogous
#33A282 #338BA2 #3354A2
triadic
#338BA2 #A2338B #8BA233
tetradic
#338BA2 #8233A2 #A24A33 #54A233
square
#338BA2 #8233A2 #A24A33 #54A233
split-complementary
#338BA2 #A23354 #A28233
monochromatic
#163B45 #246373 #338BA2 #4CADC7 #7AC2D5

Accessibility & contrast

On white

3.92
#338BA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#338BA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338BA2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338BA2#FFFFFF#000000##000000
##338BA21.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C87A3
Deuteranopia (green-blind)
#6D7CA2
Tritanopia (blue-blind)
#009392
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338ba2;
/* rgb */ color: rgb(51, 139, 162);
/* oklch */ color: oklch(59.4% 0.089 218.5);
Tailwind
colors: {
  custom: {
    50: '#79adbd',
    500: '#338ba2',
    950: '#000000',
  },
}
SCSS
$custom: #338ba2;
$custom-light: #79adbd;
$custom-dark: #000000;
JSON
{
  "hex": "#338ba2",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 162
  },
  "hsl": {
    "h": 192.432,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.59423,
    "c": 0.08886,
    "h": 218.5
  },
  "luminance": 0.21778
}

Semantic roles & 50–950 ramp

primary
#338BA2
secondary
#BE8273
accent
#6A4CDC
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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